[PATCH] kernel32: Add DECLSPEC_HOTPATCH to VirtualAllocEx().

Zhiyi Zhang zzhang at codeweavers.com
Sun Mar 24 05:47:06 CDT 2019


This fix Tom Clancy's The Devision uplay version startup crash.

Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
---
 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 7f0a562db4..42da7f0d8c 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;
-- 
2.20.1




More information about the wine-devel mailing list