Grant Lewis wrote:
It's repeatable. I can launch the progam fine but when I click in certain
parts of the gui I generate the page fault and the program dies.
wine: Unhandled page fault on write access to 0x0000001f at address 0x7d62d6
(th
read 0009), starting debugger...
WineDbg starting on pid 0x8
First chance exception: page fault on read access to 0x00000000 in 32-bit
code (
0x7ffa7292).
does the attached patch help ?
A+
--
Eric Pouech
diff --git a/dlls/kernel/except.c b/dlls/kernel/except.c
index 1c97a2e..95c5ce9 100644
--- a/dlls/kernel/except.c
+++ b/dlls/kernel/except.c
@@ -403,7 +403,7 @@ inline static BOOL check_resource_write(
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;