[PATCH 08/10] ntdll: Fix the ProcessDebugPort information length in NtQueryInformationProcess().

Henri Verbeet hverbeet at codeweavers.com
Sun Mar 14 15:53:26 CDT 2010


---
 dlls/ntdll/process.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ntdll/process.c b/dlls/ntdll/process.c
index ba51df5..9be1339 100644
--- a/dlls/ntdll/process.c
+++ b/dlls/ntdll/process.c
@@ -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
-- 
1.6.4.4




More information about the wine-patches mailing list