Commit 1d6a633a authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Michael Stefaniuc

kernel32: Add DECLSPEC_HOTPATCH to VirtualAllocEx().

Fix Tom Clancy's The Devision uplay version startup crash. Signed-off-by: 's avatarZhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org> (cherry picked from commit df3dd661) Signed-off-by: 's avatarMichael Stefaniuc <mstefani@winehq.org>
parent 1ad3a179
...@@ -86,7 +86,7 @@ LPVOID WINAPI DECLSPEC_HOTPATCH VirtualAlloc( void *addr, SIZE_T size, DWORD typ ...@@ -86,7 +86,7 @@ LPVOID WINAPI DECLSPEC_HOTPATCH VirtualAlloc( void *addr, SIZE_T size, DWORD typ
* Success: Base address of allocated region of pages. * Success: Base address of allocated region of pages.
* Failure: NULL. * 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 ) DWORD type, DWORD protect )
{ {
LPVOID ret = addr; LPVOID ret = addr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment