mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
- 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:
parent
e6463c5a34
commit
d4cf4b1b58
1 changed files with 2 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue