Module: wine Branch: master Commit: 3dd6cafe3d03404eb61eb1585e36a1de6e4259a2 URL: https://source.winehq.org/git/wine.git/?a=commit;h=3dd6cafe3d03404eb61eb1585...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Aug 4 12:48:15 2021 +0200
ntdll: Use the 32-bit __wine_ctrl_routine() in Wow64 processes.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/ntdll/unix/loader.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/ntdll/unix/loader.c b/dlls/ntdll/unix/loader.c index c2f79bc2c44..f1dbe9f345e 100644 --- a/dlls/ntdll/unix/loader.c +++ b/dlls/ntdll/unix/loader.c @@ -869,6 +869,8 @@ static void load_ntdll_wow64_functions( HMODULE module ) GET_FUNC( RtlpQueryProcessDebugInformationRemote ); #undef GET_FUNC
+ p__wine_ctrl_routine = (void *)find_named_export( module, exports, "__wine_ctrl_routine" ); + /* also set the 32-bit LdrSystemDllInitBlock */ memcpy( (void *)(ULONG_PTR)pLdrSystemDllInitBlock->pLdrSystemDllInitBlock, pLdrSystemDllInitBlock, sizeof(*pLdrSystemDllInitBlock) );