Fix PhGetThreadServiceTag regression on Windows 8.1
@@ -590,10 +590,10 @@ NTSTATUS PhGetThreadServiceTag(
if (!ProcessHandle)
{
- if (!NT_SUCCESS(status = PhOpenThreadProcess(
- ThreadHandle,
+ if (!NT_SUCCESS(status = PhOpenProcess(
+ &ProcessHandle,
PROCESS_VM_READ,
- &ProcessHandle
+ basicInfo.ClientId.UniqueProcess
)))
return status;
