Implementation of RtlAssert() when triggered within emulated program

This commit is contained in:
Echelon9 2013-04-07 13:33:44 +10:00
parent 933ad18234
commit e339af5e15
1 changed files with 5 additions and 6 deletions

View File

@ -4115,15 +4115,14 @@ XBSYSAPI EXPORTNUM(264) VOID NTAPI xboxkrnl::RtlAssert
DbgPrintf("EmuKrnl (0x%X): RtlAssert\n"
"(\n"
" FailedAssertion : 0x%.08X\n"
" FileName : 0x%.08X\n"
" LineNumber : 0x%.08X\n"
" FailedAssertion : 0x%.08X (\"%s\")\n"
" FileName : 0x%.08X (\"%s\")\n"
" LineNumber : 0x%.08X (\"%lu\")\n"
" Message : 0x%.08X (\"%s\")\n"
");\n",
GetCurrentThreadId(), FailedAssertion, FileName, LineNumber, Message, Message);
GetCurrentThreadId(), FailedAssertion, FailedAssertion, FileName, FileName, LineNumber, LineNumber, Message, Message);
//TODO: Actually implement this.
//NTSTATUS ret = NtDll::RtlAssert((NtDll::UNICODE_STRING*)DestinationString, (NtDll::STRING*)SourceString, AllocateDestinationString);
CxbxKrnlCleanup("RtlAssert() raised by emulated program - consult Debug log");
EmuSwapFS(); // Xbox FS