Author: sginsberg Date: Mon Mar 5 12:50:08 2012 New Revision: 56028
URL: http://svn.reactos.org/svn/reactos?rev=56028&view=rev Log: [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.
Modified: trunk/reactos/boot/freeldr/freeldr/debug.c
Modified: trunk/reactos/boot/freeldr/freeldr/debug.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/debug.... ============================================================================== --- trunk/reactos/boot/freeldr/freeldr/debug.c [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/debug.c [iso-8859-1] Mon Mar 5 12:50:08 2012 @@ -312,6 +312,32 @@ UiMessageBoxCritical(Buffer); assert(FALSE); 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(); }