Module: wine Branch: master Commit: 6677255d665e83b4f8d67f019232ef5ecac8e15f URL: https://gitlab.winehq.org/wine/wine/-/commit/6677255d665e83b4f8d67f019232ef5...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Nov 28 11:39:33 2022 +0100
capi2032: Use the Unix call helpers.
---
dlls/capi2032/cap20wxx.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/dlls/capi2032/cap20wxx.c b/dlls/capi2032/cap20wxx.c index 96007f51e96..c8c008d7c5f 100644 --- a/dlls/capi2032/cap20wxx.c +++ b/dlls/capi2032/cap20wxx.c @@ -29,9 +29,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(capi);
-static unixlib_handle_t capi_handle; - -#define CAPI_CALL( func, params ) __wine_unix_call( capi_handle, unix_ ## func, params ) +#define CAPI_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )
BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, LPVOID reserved ) @@ -40,8 +38,7 @@ BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, LPVOID reserved ) { case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls( instance ); - return !NtQueryVirtualMemory( GetCurrentProcess(), instance, MemoryWineUnixFuncs, - &capi_handle, sizeof(capi_handle), NULL ); + return !__wine_init_unix_call(); } return TRUE; }