Module: wine Branch: master Commit: f000189b8a2042b4d39b78348114e2b32528b4e8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f000189b8a2042b4d39b783481...
Author: Jacek Caban jacek@codeweavers.com Date: Mon Jul 18 13:20:45 2016 +0200
kernel32: Make MapViewOfFile and VirtualAlloc hotpatchable.
Both are patched by Firefox.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/kernel32/virtual.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/kernel32/virtual.c b/dlls/kernel32/virtual.c index f443020..37ab264 100644 --- a/dlls/kernel32/virtual.c +++ b/dlls/kernel32/virtual.c @@ -63,7 +63,7 @@ WINE_DECLARE_DEBUG_CHANNEL(file); * Success: Base address of allocated region of pages. * Failure: NULL. */ -LPVOID WINAPI VirtualAlloc( LPVOID addr, SIZE_T size, DWORD type, DWORD protect ) +LPVOID WINAPI DECLSPEC_HOTPATCH VirtualAlloc( void *addr, SIZE_T size, DWORD type, DWORD protect ) { return VirtualAllocEx( GetCurrentProcess(), addr, size, type, protect ); } @@ -504,7 +504,7 @@ HANDLE WINAPI OpenFileMappingW( DWORD access, BOOL inherit, LPCWSTR name) * Success: Starting address of mapped view. * Failure: NULL. */ -LPVOID WINAPI MapViewOfFile( HANDLE mapping, DWORD access, +LPVOID WINAPI DECLSPEC_HOTPATCH MapViewOfFile( HANDLE mapping, DWORD access, DWORD offset_high, DWORD offset_low, SIZE_T count ) { return MapViewOfFileEx( mapping, access, offset_high,