- MmUnmapViewOfSection: Unlock address space before notifying debugger. Fixes a case where OllyDbg deadlocks in a GateWait while trying to read virtual memory.

svn path=/trunk/; revision=41356
This commit is contained in:
Michael Martin 2009-06-09 12:50:32 +00:00
parent afe9096dba
commit 999d0e50c9

View file

@ -4148,10 +4148,11 @@ MmUnmapViewOfSection(PEPROCESS Process,
Status = MmUnmapViewOfSegment(AddressSpace, BaseAddress);
}
MmUnlockAddressSpace(AddressSpace);
/* Notify debugger */
if (ImageBaseAddress) DbgkUnMapViewOfSection(ImageBaseAddress);
MmUnlockAddressSpace(AddressSpace);
return(STATUS_SUCCESS);
}