Fix regression viewing handle properties (commit 7b55523)
@@ -84,6 +84,9 @@ VOID PhShowHandleProperties(
PROPSHEETPAGE propSheetPage;
HPROPSHEETPAGE pages[16];
HANDLE_PROPERTIES_CONTEXT context;
+ PH_STD_OBJECT_SECURITY stdObjectSecurity;
+ PPH_ACCESS_ENTRY accessEntries;
+ ULONG numberOfAccessEntries;
context.ProcessId = ProcessId;
context.HandleItem = HandleItem;
@@ -179,12 +182,6 @@ VOID PhShowHandleProperties(
);
}
- if (!PhIsNullOrEmptyString(HandleItem->TypeName))
- {
- PH_STD_OBJECT_SECURITY stdObjectSecurity;
- PPH_ACCESS_ENTRY accessEntries;
- ULONG numberOfAccessEntries;
-
// Security page
stdObjectSecurity.OpenObject = PhpDuplicateHandleFromProcess;
stdObjectSecurity.ObjectType = PhGetStringOrEmpty(HandleItem->TypeName);
@@ -202,7 +199,6 @@ VOID PhShowHandleProperties(
);
PhFree(accessEntries);
}
- }
if (PhPluginsEnabled)
{
