Module: wine Branch: master Commit: 3daa153b297440ca9fe9503430f7ad2188687cc7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3daa153b297440ca9fe9503430...
Author: Dmitry Timoshkov dmitry@baikal.ru Date: Mon Oct 31 13:48:08 2011 +0800
kernel32: Use PAGE_READWRITE access when enabling write access to resource data.
---
dlls/kernel32/except.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/except.c b/dlls/kernel32/except.c index 6b68057..54be105 100644 --- a/dlls/kernel32/except.c +++ b/dlls/kernel32/except.c @@ -412,7 +412,7 @@ static inline BOOL check_resource_write( void *addr ) return FALSE; if (addr < rsrc || (char *)addr >= (char *)rsrc + size) return FALSE; TRACE( "Broken app is writing to the resource data, enabling work-around\n" ); - VirtualProtect( rsrc, size, PAGE_WRITECOPY, NULL ); + VirtualProtect( rsrc, size, PAGE_READWRITE, NULL ); return TRUE; }