Add handle check for PhGetHandleInformation
@@ -1409,7 +1409,7 @@ NTSTATUS PhGetHandleInformationEx(
PPH_STRING objectName = NULL;
PPH_STRING bestObjectName = NULL;
- if (Handle == NULL || Handle == NtCurrentProcess() || Handle == NtCurrentThread())
+ if (ProcessHandle == NULL || Handle == NULL || Handle == NtCurrentProcess() || Handle == NtCurrentThread())
return STATUS_INVALID_HANDLE;
if (ObjectTypeNumber != ULONG_MAX && ObjectTypeNumber >= MAX_OBJECT_TYPE_NUMBER)
return STATUS_INVALID_PARAMETER_3;
