From f000189b8a2042b4d39b78348114e2b32528b4e8 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 18 Jul 2016 13:20:45 +0200 Subject: [PATCH] kernel32: Make MapViewOfFile and VirtualAlloc hotpatchable. Both are patched by Firefox. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- 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 f443020ba8d..37ab26420dc 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,