Andrey Turkin : ntdll: Accept ProcessDebugObjectHandle in QueryInformationProcess.

Alexandre Julliard julliard at winehq.org
Wed Sep 30 10:56:07 CDT 2009


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

Author: Andrey Turkin <andrey.turkin at gmail.com>
Date:   Tue Sep 29 20:48:42 2009 +0400

ntdll: Accept ProcessDebugObjectHandle in QueryInformationProcess.

---

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

diff --git a/dlls/ntdll/process.c b/dlls/ntdll/process.c
index d2e8db0..cae3f79 100644
--- a/dlls/ntdll/process.c
+++ b/dlls/ntdll/process.c
@@ -141,7 +141,6 @@ NTSTATUS WINAPI NtQueryInformationProcess(
     UNIMPLEMENTED_INFO_CLASS(ProcessForegroundInformation);
     UNIMPLEMENTED_INFO_CLASS(ProcessLUIDDeviceMapsEnabled);
     UNIMPLEMENTED_INFO_CLASS(ProcessBreakOnTermination);
-    UNIMPLEMENTED_INFO_CLASS(ProcessDebugObjectHandle);
     UNIMPLEMENTED_INFO_CLASS(ProcessDebugFlags);
     UNIMPLEMENTED_INFO_CLASS(ProcessHandleTracing);
 
@@ -300,6 +299,15 @@ NTSTATUS WINAPI NtQueryInformationProcess(
         else
             ret = STATUS_INFO_LENGTH_MISMATCH;
         break;
+    case ProcessDebugObjectHandle:
+        /* "These are not the debuggers you are looking for." *
+         * set it to 0 aka "no debugger" to satisfy copy protections */
+        len = sizeof(HANDLE);
+        if (ProcessInformationLength == len)
+            memset(ProcessInformation, 0, ProcessInformationLength);
+        else
+            ret = STATUS_INFO_LENGTH_MISMATCH;
+        break;
     case ProcessHandleCount:
         if (ProcessInformationLength >= 4)
         {




More information about the wine-cvs mailing list