diff options
Diffstat (limited to 'system/wine/writecopy.patch')
-rw-r--r-- | system/wine/writecopy.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/system/wine/writecopy.patch b/system/wine/writecopy.patch new file mode 100644 index 0000000000..d067dccd92 --- /dev/null +++ b/system/wine/writecopy.patch @@ -0,0 +1,18 @@ +@@ -, +, @@ +--- + dlls/kernelbase/memory.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) +--- a/dlls/kernelbase/memory.c ++++ a/dlls/kernelbase/memory.c +@@ -481,7 +481,9 @@ BOOL WINAPI DECLSPEC_HOTPATCH VirtualLock( void *addr, SIZE_T size ) + */ + BOOL WINAPI DECLSPEC_HOTPATCH VirtualProtect( void *addr, SIZE_T size, DWORD new_prot, DWORD *old_prot ) + { +- return VirtualProtectEx( GetCurrentProcess(), addr, size, new_prot, old_prot ); ++ BOOL ret = VirtualProtectEx( GetCurrentProcess(), addr, size, new_prot, old_prot ); ++ if (*old_prot == PAGE_WRITECOPY) *old_prot = PAGE_READWRITE; ++ return ret; + } + + +-- |