Skip to content
Snippets Groups Projects
Commit 038e604f authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard
Browse files

kernel: Resource browsing.

Try to be a bit more strict when checking for resource mapping in
exception handler (and prevent some exceptions while in exception
handler).
parent 6a8578f8
Branches
Tags
No related merge requests found
......@@ -403,7 +403,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 (info.State == MEM_FREE || !(info.Type & MEM_IMAGE)) return FALSE;
if (!(rsrc = RtlImageDirectoryEntryToData( (HMODULE)info.AllocationBase, TRUE,
IMAGE_DIRECTORY_ENTRY_RESOURCE, &size )))
return FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment