- 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...

svn path=/trunk/; revision=42280
This commit is contained in:
Stefan Ginsberg 2009-07-28 21:48:49 +00:00
parent 3bf37964b7
commit 43f03aef8a

View 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,