NTAPI
MiRosUnmapViewOfSection(IN PEPROCESS Process,
IN PVOID BaseAddress,
- IN ULONG Flags)
+ IN BOOLEAN SkipDebuggerNotify)
{
NTSTATUS Status;
PMEMORY_AREA MemoryArea;
MmUnlockAddressSpace(AddressSpace);
/* Notify debugger */
- if (ImageBaseAddress) DbgkUnMapViewOfSection(ImageBaseAddress);
+ if (ImageBaseAddress && !SkipDebuggerNotify) DbgkUnMapViewOfSection(ImageBaseAddress);
return(STATUS_SUCCESS);
}