mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 14:34:57 +08:00
[SDK] Reset InDbgPrint state when an exception occurs
Previously this would not get reset, and all debug prints from the current thread would be muted.
This commit is contained in:
@@ -91,6 +91,8 @@ vDbgPrintExWithPrefixInternal(IN PCCH Prefix,
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
/* In user-mode, clear the InDbgPrint Flag */
|
||||
RtlpClearInDbgPrint();
|
||||
/* Fail */
|
||||
_SEH2_YIELD(return _SEH2_GetExceptionCode());
|
||||
}
|
||||
@@ -129,8 +131,8 @@ vDbgPrintExWithPrefixInternal(IN PCCH Prefix,
|
||||
/* 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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user