}
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
{
+ /* In user-mode, clear the InDbgPrint Flag */
+ RtlpClearInDbgPrint();
/* Fail */
_SEH2_YIELD(return _SEH2_GetExceptionCode());
}
/* Raise the exception */
RtlRaiseException(&ExceptionRecord);
- /* This code only runs in user-mode, so setting the flag is safe */
- NtCurrentTeb()->InDbgPrint = FALSE;
+ /* In user-mode, clear the InDbgPrint Flag */
+ RtlpClearInDbgPrint();
return STATUS_SUCCESS;
}