Commit 12298c5c authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Return "no debugger attached" in NtQueryInformationProcess to satisfy

some copy protection mechanisms.
parent 9a5b0d4f
...@@ -97,7 +97,13 @@ NTSTATUS WINAPI NtQueryInformationProcess( ...@@ -97,7 +97,13 @@ NTSTATUS WINAPI NtQueryInformationProcess(
OUT PULONG ReturnLength) OUT PULONG ReturnLength)
{ {
FIXME("(0x%08x,0x%08x,%p,0x%08lx,%p),stub!\n", FIXME("(0x%08x,0x%08x,%p,0x%08lx,%p),stub!\n",
ProcessHandle,ProcessInformationClass,ProcessInformation,ProcessInformationLength,ReturnLength); ProcessHandle,ProcessInformationClass,ProcessInformation,ProcessInformationLength,ReturnLength
);
/* "These are not the debuggers you are looking for." */
if (ProcessInformationClass == ProcessDebugPort)
/* set it to 0 aka "no debugger" to satisfy copy protections */
memset(ProcessInformation,0,ProcessInformationLength);
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment