mirror of
https://github.com/reactos/reactos.git
synced 2024-07-09 06:05:11 +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
|
@ -314,6 +314,32 @@ KeBugCheckEx(
|
|||
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
|
||||
DbgAddDebugChannel( CHAR* channel, CHAR* level, CHAR op)
|
||||
|
|
Loading…
Reference in a new issue