Zhiyi Zhang : kernel32: Add DECLSPEC_HOTPATCH to VirtualAllocEx().
Module: wine Branch: stable Commit: 1d6a633a26aad5525ab2928201d000a25e96c9d2 URL: https://source.winehq.org/git/wine.git/?a=commit;h=1d6a633a26aad5525ab292820... Author: Zhiyi Zhang <zzhang(a)codeweavers.com> Date: Sun Mar 24 18:47:06 2019 +0800 kernel32: Add DECLSPEC_HOTPATCH to VirtualAllocEx(). Fix Tom Clancy's The Devision uplay version startup crash. Signed-off-by: Zhiyi Zhang <zzhang(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> (cherry picked from commit df3dd6612c2098e347cad88c90853cf3892e4301) Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> --- dlls/kernel32/virtual.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/kernel32/virtual.c b/dlls/kernel32/virtual.c index 7f0a562..42da7f0 100644 --- a/dlls/kernel32/virtual.c +++ b/dlls/kernel32/virtual.c @@ -86,7 +86,7 @@ LPVOID WINAPI DECLSPEC_HOTPATCH VirtualAlloc( void *addr, SIZE_T size, DWORD typ * Success: Base address of allocated region of pages. * Failure: NULL. */ -LPVOID WINAPI VirtualAllocEx( HANDLE hProcess, LPVOID addr, SIZE_T size, +LPVOID WINAPI DECLSPEC_HOTPATCH VirtualAllocEx( HANDLE hProcess, LPVOID addr, SIZE_T size, DWORD type, DWORD protect ) { LPVOID ret = addr;
participants (1)
-
Alexandre Julliard