[LDR] Disable Logging when images overlap CORE-17635

We found out what we wanted to find out:
the remaining TODOs for the Python script.

So we can silence the DPRINTs again for the time being
to reduce spam from 3rd party dlls.
Paying tribute to Mark Jansen ;)
This commit is contained in:
Joachim Henze 2021-08-06 19:25:14 +02:00
parent c4801ab696
commit 4cc2c350ef

View file

@ -1335,7 +1335,7 @@ SkipCheck:
ImageBase = (ULONG_PTR)NtHeaders->OptionalHeader.ImageBase;
ImageEnd = ImageBase + ViewSize;
DPRINT1("LDR: LdrpMapDll Relocating Image Name %ws (%p-%p -> %p)\n", DllName, (PVOID)ImageBase, (PVOID)ImageEnd, ViewBase);
DPRINT("LDR: LdrpMapDll Relocating Image Name %ws (%p-%p -> %p)\n", DllName, (PVOID)ImageBase, (PVOID)ImageEnd, ViewBase);
/* Scan all the modules */
ListHead = &Peb->Ldr->InLoadOrderModuleList;
@ -1374,7 +1374,7 @@ SkipCheck:
RtlInitUnicodeString(&OverlapDll, L"Dynamically Allocated Memory");
}
DPRINT1("Overlapping DLL: %wZ\n", &OverlapDll);
DPRINT("Overlapping DLL: %wZ\n", &OverlapDll);
/* Are we dealing with a DLL? */
if (LdrEntry->Flags & LDRP_IMAGE_DLL)