UserNotes: Fix process priorities not being properly restored after restart
@@ -173,7 +173,9 @@ PPH_STRING GetOpaqueXmlNodeText(
_In_ mxml_node_t *node
)
{
- if (node->child && node->child->type == MXML_OPAQUE && node->child->value.opaque)
+ PCSTR string;
+
+ if (string = mxmlGetOpaque(node))
{
return PhConvertUtf8ToUtf16(node->child->value.opaque);
}
@@ -270,7 +272,7 @@ NTSTATUS LoadDb(
comment = GetOpaqueXmlNodeText(currentNode);
- if (tag && name && comment)
+ if (tag && name)
{
ULONG64 tagInteger;
ULONG64 priorityClassInteger = 0;
