projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Use _SEH2_YIELD when returning from an exception instead of returning outside the...
[reactos.git]
/
reactos
/
lib
/
rtl
/
debug.c
diff --git
a/reactos/lib/rtl/debug.c
b/reactos/lib/rtl/debug.c
index
c491a46
..
f34adef
100644
(file)
--- a/
reactos/lib/rtl/debug.c
+++ b/
reactos/lib/rtl/debug.c
@@
-54,7
+54,7
@@
vDbgPrintExWithPrefixInternal(IN LPCSTR Prefix,
IN va_list ap,
IN BOOLEAN HandleBreakpoint)
{
IN va_list ap,
IN BOOLEAN HandleBreakpoint)
{
- NTSTATUS Status
= STATUS_SUCCESS
;
+ NTSTATUS Status;
ANSI_STRING DebugString;
CHAR Buffer[512];
ULONG Length, PrefixLength;
ANSI_STRING DebugString;
CHAR Buffer[512];
ULONG Length, PrefixLength;
@@
-65,11
+65,11
@@
vDbgPrintExWithPrefixInternal(IN LPCSTR Prefix,
!(NtQueryDebugFilterState(ComponentId, Level)))
{
/* This message is masked */
!(NtQueryDebugFilterState(ComponentId, Level)))
{
/* This message is masked */
- return S
tatus
;
+ return S
TATUS_SUCCESS
;
}
/* For user mode, don't recursively DbgPrint */
}
/* For user mode, don't recursively DbgPrint */
- if (RtlpSetInDbgPrint(TRUE)) return S
tatus
;
+ if (RtlpSetInDbgPrint(TRUE)) return S
TATUS_SUCCESS
;
/* Guard against incorrect pointers */
_SEH2_TRY
/* Guard against incorrect pointers */
_SEH2_TRY
@@
-91,10
+91,9
@@
vDbgPrintExWithPrefixInternal(IN LPCSTR Prefix,
{
/* Fail */
Length = PrefixLength = 0;
{
/* Fail */
Length = PrefixLength = 0;
-
Status = _SEH2_GetExceptionCode(
);
+
_SEH2_YIELD(return _SEH2_GetExceptionCode()
);
}
_SEH2_END;
}
_SEH2_END;
- if (!NT_SUCCESS(Status)) return Status;
/* Check if we went past the buffer */
if (Length == -1U)
/* Check if we went past the buffer */
if (Length == -1U)