[NTOS] Don't assert, when dispatching an exception to user mode fails

Instead continue with second chance handling.
This commit is contained in:
Timo Kreuzer 2022-07-23 16:23:26 +02:00
parent b3a8f8611d
commit 786017c5b6

View file

@ -361,9 +361,10 @@ KiDispatchException(IN PEXCEPTION_RECORD ExceptionRecord,
/* Forward exception to user mode debugger */
if (DbgkForwardException(ExceptionRecord, TRUE, FALSE)) return;
/* Forward exception to user mode (does not return) */
/* Forward exception to user mode (does not return, if successful) */
KiDispatchExceptionToUser(TrapFrame, &Context, ExceptionRecord);
NT_ASSERT(FALSE);
/* Failed to dispatch, fall through for second chance handling */
}
/* Try second chance */