[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
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);
DebugDump("FatExceptionFilter\n", Dbg, NULL );
#ifdef DBG
#if DBG
if( FatBreakOnInterestingExceptionStatus != 0 && ExceptionCode == FatBreakOnInterestingExceptionStatus ) {
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 DBG
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(" previous caller %p\n", current_entry->Caller);
#endif
KeBugCheck(MEMORY_MANAGEMENT);
}