Module: wine Branch: master Commit: 4ce43cd919d9754de081c352bde8d286746b9765 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4ce43cd919d9754de081c352bd...
Author: Henri Verbeet hverbeet@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