[NTOS:MM][FASTFAT_NEW] Fix DBG usage, fixes Release build

This commit is contained in:
Victor Perevertkin 2021-02-05 11:54:10 +03:00
parent 44eecfaa01
commit b705df731e
No known key found for this signature in database
GPG key ID: C750B7222E9C7830
2 changed files with 3 additions and 1 deletions

View file

@ -233,7 +233,7 @@ Return Value:
DebugTrace(0, DEBUG_TRACE_UNWIND, "FatExceptionFilter %X\n", ExceptionCode); DebugTrace(0, DEBUG_TRACE_UNWIND, "FatExceptionFilter %X\n", ExceptionCode);
DebugDump("FatExceptionFilter\n", Dbg, NULL ); DebugDump("FatExceptionFilter\n", Dbg, NULL );
#ifdef DBG #if DBG
if( FatBreakOnInterestingExceptionStatus != 0 && ExceptionCode == FatBreakOnInterestingExceptionStatus ) { if( FatBreakOnInterestingExceptionStatus != 0 && ExceptionCode == FatBreakOnInterestingExceptionStatus ) {
DbgBreakPoint(); DbgBreakPoint();

View file

@ -406,9 +406,11 @@ MmInsertRmap(PFN_NUMBER Page, PEPROCESS Process,
if (current_entry && (current_entry->Address == Address) && (current_entry->Process == Process)) if (current_entry && (current_entry->Address == Address) && (current_entry->Process == Process))
{ {
#if DBG
DbgPrint("MmInsertRmap tries to add a second rmap entry for address %p\n", current_entry->Address); DbgPrint("MmInsertRmap tries to add a second rmap entry for address %p\n", current_entry->Address);
DbgPrint(" current caller %p\n", new_entry->Caller); DbgPrint(" current caller %p\n", new_entry->Caller);
DbgPrint(" previous caller %p\n", current_entry->Caller); DbgPrint(" previous caller %p\n", current_entry->Caller);
#endif
KeBugCheck(MEMORY_MANAGEMENT); KeBugCheck(MEMORY_MANAGEMENT);
} }