mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 13:16:07 +00: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:
parent
372363930f
commit
db8488e5ca
1 changed files with 4 additions and 2 deletions
|
@ -91,6 +91,8 @@ vDbgPrintExWithPrefixInternal(IN PCCH Prefix,
|
||||||
}
|
}
|
||||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||||
{
|
{
|
||||||
|
/* In user-mode, clear the InDbgPrint Flag */
|
||||||
|
RtlpClearInDbgPrint();
|
||||||
/* Fail */
|
/* Fail */
|
||||||
_SEH2_YIELD(return _SEH2_GetExceptionCode());
|
_SEH2_YIELD(return _SEH2_GetExceptionCode());
|
||||||
}
|
}
|
||||||
|
@ -129,8 +131,8 @@ vDbgPrintExWithPrefixInternal(IN PCCH Prefix,
|
||||||
/* Raise the exception */
|
/* Raise the exception */
|
||||||
RtlRaiseException(&ExceptionRecord);
|
RtlRaiseException(&ExceptionRecord);
|
||||||
|
|
||||||
/* This code only runs in user-mode, so setting the flag is safe */
|
/* In user-mode, clear the InDbgPrint Flag */
|
||||||
NtCurrentTeb()->InDbgPrint = FALSE;
|
RtlpClearInDbgPrint();
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue