ntdll: Fix the ProcessDebugPort information length in NtQueryInformationProcess().
authorHenri Verbeet <hverbeet@codeweavers.com>
Sun, 14 Mar 2010 20:53:26 +0000 (21:53 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 15 Mar 2010 14:56:02 +0000 (15:56 +0100)
dlls/ntdll/process.c

index ba51df564451729ff965099336445b661e9ce25d..9be133910d0bf1de54ce89050e56195e2908931f 100644 (file)
@@ -293,7 +293,7 @@ NTSTATUS WINAPI NtQueryInformationProcess(
     case ProcessDebugPort:
         /* "These are not the debuggers you are looking for." *
          * set it to 0 aka "no debugger" to satisfy copy protections */
-        len = 4;
+        len = sizeof(DWORD_PTR);
         if (ProcessInformationLength == len)
             memset(ProcessInformation, 0, ProcessInformationLength);
         else