- Don't dereference a thread when we are supposed to reference it. Now WinDBG can attach to a process, but we crash in CM due to a unhandled failure case.

svn path=/trunk/; revision=36238
This commit is contained in:
Stefan Ginsberg 2008-09-14 13:41:33 +00:00
parent 039d340316
commit d896822e7b

View file

@ -722,7 +722,7 @@ DbgkpPostFakeThreadMessages(IN PEPROCESS Process,
IsFirstThread = FALSE;
/* Reference this thread and set it as first */
ObDereferenceObject(ThisThread);
ObReferenceObject(ThisThread);
pFirstThread = ThisThread;
}