Commit 4ce43cd9 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

ntdll: Fix the ProcessDebugPort information length in NtQueryInformationProcess().

parent 4b671f4d
...@@ -293,7 +293,7 @@ NTSTATUS WINAPI NtQueryInformationProcess( ...@@ -293,7 +293,7 @@ NTSTATUS WINAPI NtQueryInformationProcess(
case ProcessDebugPort: case ProcessDebugPort:
/* "These are not the debuggers you are looking for." * /* "These are not the debuggers you are looking for." *
* set it to 0 aka "no debugger" to satisfy copy protections */ * set it to 0 aka "no debugger" to satisfy copy protections */
len = 4; len = sizeof(DWORD_PTR);
if (ProcessInformationLength == len) if (ProcessInformationLength == len)
memset(ProcessInformation, 0, ProcessInformationLength); memset(ProcessInformation, 0, ProcessInformationLength);
else else
......
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