Yuri Sidorov <jura@cp-lab.com>

- Properly set dwFirstChance member EXCEPTION_DEBUG_INFO structure returned by WaitForDebugEvent function.
- Properly handle dwContinueStatus parameter of ContinueDebugEvent function.

See issue #3393 for more details.

svn path=/trunk/; revision=34111
This commit is contained in:
Aleksey Bragin 2008-06-26 19:16:59 +00:00
parent ae7e228924
commit 558c11db56

View file

@ -865,6 +865,9 @@ DbgkpConvertKernelToUserStateChange(IN PDBGUI_WAIT_STATE_CHANGE WaitStateChange,
/* Copy the exception record */
WaitStateChange->StateInfo.Exception.ExceptionRecord =
DebugEvent->ApiMsg.Exception.ExceptionRecord;
/* Copy FirstChance flag */
WaitStateChange->StateInfo.Exception.FirstChance =
DebugEvent->ApiMsg.Exception.FirstChance;
break;
/* Process exited */
@ -1598,7 +1601,7 @@ NtDebugContinue(IN HANDLE DebugHandle,
if (NeedsWake)
{
/* Set the continue status */
DebugEvent->ApiMsg.ReturnedStatus = Status;
DebugEvent->ApiMsg.ReturnedStatus = ContinueStatus;
DebugEvent->Status = STATUS_SUCCESS;
/* Wake the target */