Author: sginsberg
Date: Tue Jul 28 23:48:49 2009
New Revision: 42280
URL:
http://svn.reactos.org/svn/reactos?rev=42280&view=rev
Log:
- Fix 41969 -- the wrong flag got set, creating a broken, unusable debug object. Please
make sure you know basic C before trying some clever optimization. Debuggers should now
work again...
Modified:
trunk/reactos/ntoskrnl/dbgk/dbgkobj.c
Modified: trunk/reactos/ntoskrnl/dbgk/dbgkobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/dbgk/dbgkobj.c?re…
==============================================================================
--- trunk/reactos/ntoskrnl/dbgk/dbgkobj.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/dbgk/dbgkobj.c [iso-8859-1] Tue Jul 28 23:48:49 2009
@@ -1564,7 +1564,11 @@
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,