mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
kernel32: Use PAGE_READWRITE access when enabling write access to resource data.
This commit is contained in:
parent
8a2e38cc45
commit
3daa153b29
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue