- Fix 41969 -- the wrong flag got set, creating a broken, unusable debug object....
authorStefan Ginsberg <stefanginsberg@gmail.com>
Tue, 28 Jul 2009 21:48:49 +0000 (21:48 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Tue, 28 Jul 2009 21:48:49 +0000 (21:48 +0000)
svn path=/trunk/; revision=42280

reactos/ntoskrnl/dbgk/dbgkobj.c

index 1367688..98b6084 100644 (file)
@@ -1564,7 +1564,11 @@ NtCreateDebugObject(OUT PHANDLE DebugHandle,
                           FALSE);
 
         /* Set the Flags */
-        DebugObject->Flags = Flags;
+        DebugObject->Flags = 0;
+        if (Flags & DBGK_KILL_PROCESS_ON_EXIT)
+        {
+            DebugObject->KillProcessOnExit = TRUE;
+        }
 
         /* Insert it */
         Status = ObInsertObject((PVOID)DebugObject,