[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:
Stefan Ginsberg 2012-03-05 12:50:08 +00:00
parent caefd349c5
commit 549d8709b3

View file

@ -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)