Remove duplicate PackageFullName query
@@ -131,14 +131,11 @@ PPH_MODULE_PROVIDER PhCreateModuleProvider(
if (processItem = PhReferenceProcessItem(ProcessId))
{
PhSetReference(&moduleProvider->ProcessFileName, processItem->FileName);
+ PhSetReference(&moduleProvider->PackageFullName, processItem->PackageFullName);
PhDereferenceObject(processItem);
}
- if (WindowsVersion >= WINDOWS_8 && moduleProvider->ProcessHandle)
- {
- moduleProvider->PackageFullName = PhGetProcessPackageFullName(moduleProvider->ProcessHandle);
-
- if (WindowsVersion >= WINDOWS_8_1)
+ if (WindowsVersion >= WINDOWS_8_1 && moduleProvider->ProcessHandle)
{
BOOLEAN cfguardEnabled;
@@ -147,7 +144,6 @@ PPH_MODULE_PROVIDER PhCreateModuleProvider(
moduleProvider->ControlFlowGuardEnabled = cfguardEnabled;
}
}
- }
if (WindowsVersion >= WINDOWS_10 && moduleProvider->ProcessHandle)
{
