[ros-diffs] [ion] 24984: - Fix a bug in NtWaitForDebugEvent. - Dbgk kindaaaa works now, as a proof-of-concept more then anything else since some helper Mm routines are missing. Still have some bugs to fix, but connecting, attaching and waiting on events seems not to crash anymore (And returns partially valid data).

ion at svn.reactos.org ion at svn.reactos.org
Thu Nov 30 05:52:23 CET 2006


Author: ion
Date: Thu Nov 30 07:52:22 2006
New Revision: 24984

URL: http://svn.reactos.org/svn/reactos?rev=24984&view=rev
Log:
- Fix a bug in NtWaitForDebugEvent.
- Dbgk kindaaaa works now, as a proof-of-concept more then anything else since some helper Mm routines are missing. Still have some bugs to fix, but connecting, attaching and waiting on events seems not to crash anymore (And returns partially valid data).

Modified:
    trunk/reactos/ntoskrnl/dbgk/debug.c

Modified: trunk/reactos/ntoskrnl/dbgk/debug.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/dbgk/debug.c?rev=24984&r1=24983&r2=24984&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/dbgk/debug.c (original)
+++ trunk/reactos/ntoskrnl/dbgk/debug.c Thu Nov 30 07:52:22 2006
@@ -1868,8 +1868,6 @@
                                    PreviousMode,
                                    Alertable,
                                    Timeout);
-
-    /* Start the wait loop */
     while (TRUE)
     {
         if (!NT_SUCCESS(Status) ||
@@ -1988,10 +1986,11 @@
             DbgkpOpenHandles(&WaitStateChange, Process, Thread);
             ObDereferenceObject(Process);
             ObDereferenceObject(Thread);
-        }
-    }
-
-    /* We're, dereference the object */
+            break;
+        }
+    }
+
+    /* We're done, dereference the object */
     ObDereferenceObject(DebugObject);
 
     /* Protect write with SEH */




More information about the Ros-diffs mailing list