Fix PhGetProcessPackageFullName string comparison
@@ -379,9 +379,9 @@ PPH_STRING PhGetProcessPackageFullName(
{
PTOKEN_SECURITY_ATTRIBUTE_V1 attribute = &info->Attribute.pAttributeV1[i];
- if (RtlEqualUnicodeString(&attribute->Name, &attributeNameUs, FALSE))
- {
if (attribute->ValueType == TOKEN_SECURITY_ATTRIBUTE_TYPE_STRING)
+ {
+ if (RtlEqualUnicodeString(&attribute->Name, &attributeNameUs, FALSE))
{
packageName = PhCreateStringFromUnicodeString(&attribute->Values.pString[0]);
break;
