From 31670003bc75b1077c105e0db2ad60223290efd9 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sun, 21 Nov 1999 01:06:29 +0000 Subject: [PATCH] Fixed meaning of DEBUG_ONLY_THIS_PROCESS flag. --- scheduler/process.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scheduler/process.c b/scheduler/process.c index d55c29e8a25..5bf16c8766f 100644 --- a/scheduler/process.c +++ b/scheduler/process.c @@ -534,6 +534,11 @@ PDB *PROCESS_Create( NE_MODULE *pModule, LPCSTR cmd_line, LPCSTR env, info->hThread = info->hProcess = INVALID_HANDLE_VALUE; if (!(load_done_evt = CreateEventA( NULL, TRUE, FALSE, NULL ))) goto error; + /* the DEBUG_ONLY_THIS_PROCESS flag seems simply equivalent + * to DEBUG_PROCESS, contrary to Microsoft documentation (surprised?) */ + if (flags & DEBUG_ONLY_THIS_PROCESS) + flags = (flags & ~DEBUG_ONLY_THIS_PROCESS) | DEBUG_PROCESS; + /* Create the process on the server side */ req->inherit = (psa && (psa->nLength >= sizeof(*psa)) && psa->bInheritHandle); -- 2.11.4.GIT