Zhiyi Zhang : kernel32: Add DECLSPEC_HOTPATCH to VirtualAllocEx().
Alexandre Julliard
julliard at winehq.org
Wed May 15 14:32:22 CDT 2019
Module: wine
Branch: stable
Commit: 1d6a633a26aad5525ab2928201d000a25e96c9d2
URL: https://source.winehq.org/git/wine.git/?a=commit;h=1d6a633a26aad5525ab2928201d000a25e96c9d2
Author: Zhiyi Zhang <zzhang at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit df3dd6612c2098e347cad88c90853cf3892e4301)
Signed-off-by: Michael Stefaniuc <mstefani at 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;
More information about the wine-cvs
mailing list