mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:02:59 +00:00
[FREELDR]
- Give freeldr its own RtlAssert to avoid linking to the one in rtl. Makes it possible to use the DbgPrompt version (currently #if 0-ed) of RtlAssert in ntdll/ntos without breaking freeldr linking. svn path=/trunk/; revision=56028
This commit is contained in:
parent
caefd349c5
commit
549d8709b3
1 changed files with 26 additions and 0 deletions
|
@ -314,6 +314,32 @@ KeBugCheckEx(
|
||||||
for (;;);
|
for (;;);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VOID
|
||||||
|
NTAPI
|
||||||
|
RtlAssert(IN PVOID FailedAssertion,
|
||||||
|
IN PVOID FileName,
|
||||||
|
IN ULONG LineNumber,
|
||||||
|
IN PCHAR Message OPTIONAL)
|
||||||
|
{
|
||||||
|
if (Message)
|
||||||
|
{
|
||||||
|
DbgPrint("Assertion \'%s\' failed at %s line %d: %s\n",
|
||||||
|
(PCHAR)FailedAssertion,
|
||||||
|
(PCHAR)FileName,
|
||||||
|
LineNumber,
|
||||||
|
Message);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DbgPrint("Assertion \'%s\' failed at %s line %d\n",
|
||||||
|
(PCHAR)FailedAssertion,
|
||||||
|
(PCHAR)FileName,
|
||||||
|
LineNumber);
|
||||||
|
}
|
||||||
|
|
||||||
|
DbgBreakPoint();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static BOOLEAN
|
static BOOLEAN
|
||||||
DbgAddDebugChannel( CHAR* channel, CHAR* level, CHAR op)
|
DbgAddDebugChannel( CHAR* channel, CHAR* level, CHAR op)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue