Don't bother looking for a resource directory in free memory areas.
This commit is contained in:
parent
9b57a950d7
commit
143db5ce8e
|
@ -438,6 +438,7 @@ inline static BOOL check_resource_write( const EXCEPTION_RECORD *rec )
|
|||
if (!rec->ExceptionInformation[0]) return FALSE; /* not a write access */
|
||||
addr = (void *)rec->ExceptionInformation[1];
|
||||
if (!VirtualQuery( addr, &info, sizeof(info) )) return FALSE;
|
||||
if (info.State == MEM_FREE) return FALSE;
|
||||
if (!(rsrc = RtlImageDirectoryEntryToData( (HMODULE)info.AllocationBase, TRUE,
|
||||
IMAGE_DIRECTORY_ENTRY_RESOURCE, &size )))
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in New Issue