Author: fireball
Date: Thu Jun 26 14:16:59 2008
New Revision: 34111
URL:
http://svn.reactos.org/svn/reactos?rev=34111&view=rev
Log:
Yuri Sidorov <jura(a)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.
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] Thu Jun 26 14:16:59 2008
@@ -865,6 +865,9 @@
/* 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 @@
if (NeedsWake)
{
/* Set the continue status */
- DebugEvent->ApiMsg.ReturnedStatus = Status;
+ DebugEvent->ApiMsg.ReturnedStatus = ContinueStatus;
DebugEvent->Status = STATUS_SUCCESS;
/* Wake the target */