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

Alexandre Julliard julliard at winehq.org
Mon Mar 15 12:19:42 CDT 2010


Module: wine
Branch: master
Commit: 4ce43cd919d9754de081c352bde8d286746b9765
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4ce43cd919d9754de081c352bde8d286746b9765

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Sun Mar 14 21:53:26 2010 +0100

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

---

 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




More information about the wine-cvs mailing list