Author: sginsberg
Date: Sun Sep 14 08:41:33 2008
New Revision: 36238
URL: http://svn.reactos.org/svn/reactos?rev=36238&view=rev
Log:
- 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.
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] Sun Sep 14 08:41:33 2008
@@ -722,7 +722,7 @@
IsFirstThread = FALSE;
/* Reference this thread and set it as first */
- ObDereferenceObject(ThisThread);
+ ObReferenceObject(ThisThread);
pFirstThread = ThisThread;
}