ntdll: Accept ProcessDebugObjectHandle in QueryInformationProcess.

This commit is contained in:
Andrey Turkin 2009-09-29 20:48:42 +04:00 committed by Alexandre Julliard
parent 08df19b405
commit 2e86453f0a
1 changed files with 9 additions and 1 deletions

View File

@ -141,7 +141,6 @@ NTSTATUS WINAPI NtQueryInformationProcess(
UNIMPLEMENTED_INFO_CLASS(ProcessForegroundInformation);
UNIMPLEMENTED_INFO_CLASS(ProcessLUIDDeviceMapsEnabled);
UNIMPLEMENTED_INFO_CLASS(ProcessBreakOnTermination);
UNIMPLEMENTED_INFO_CLASS(ProcessDebugObjectHandle);
UNIMPLEMENTED_INFO_CLASS(ProcessDebugFlags);
UNIMPLEMENTED_INFO_CLASS(ProcessHandleTracing);
@ -300,6 +299,15 @@ NTSTATUS WINAPI NtQueryInformationProcess(
else
ret = STATUS_INFO_LENGTH_MISMATCH;
break;
case ProcessDebugObjectHandle:
/* "These are not the debuggers you are looking for." *
* set it to 0 aka "no debugger" to satisfy copy protections */
len = sizeof(HANDLE);
if (ProcessInformationLength == len)
memset(ProcessInformation, 0, ProcessInformationLength);
else
ret = STATUS_INFO_LENGTH_MISMATCH;
break;
case ProcessHandleCount:
if (ProcessInformationLength >= 4)
{