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

svn path=/trunk/; revision=24984
This commit is contained in:
Alex Ionescu 2006-11-30 04:52:22 +00:00
parent e6463c5a34
commit d4cf4b1b58

View file

@ -1868,8 +1868,6 @@ NtWaitForDebugEvent(IN HANDLE DebugHandle,
PreviousMode,
Alertable,
Timeout);
/* Start the wait loop */
while (TRUE)
{
if (!NT_SUCCESS(Status) ||
@ -1988,10 +1986,11 @@ NtWaitForDebugEvent(IN HANDLE DebugHandle,
DbgkpOpenHandles(&WaitStateChange, Process, Thread);
ObDereferenceObject(Process);
ObDereferenceObject(Thread);
break;
}
}
/* We're, dereference the object */
/* We're done, dereference the object */
ObDereferenceObject(DebugObject);
/* Protect write with SEH */