From 81493d0f8c5e1c38b96481e0af31f168d46f6e91 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 28 Nov 2022 11:39:45 +0100 Subject: [PATCH] ctapi32: Use the Unix call helpers. --- dlls/ctapi32/ctapi32.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dlls/ctapi32/ctapi32.c b/dlls/ctapi32/ctapi32.c index 0f0ee399e1c..64ae904ff41 100644 --- a/dlls/ctapi32/ctapi32.c +++ b/dlls/ctapi32/ctapi32.c @@ -32,9 +32,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ctapi32); #define FALLBACK_LIBCTAPI "libctapi.so" -static unixlib_handle_t ctapi_handle; - -#define CTAPI_CALL( func, params ) __wine_unix_call( ctapi_handle, unix_ ## func, params ) +#define CTAPI_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params ) static BOOL load_functions(void) { @@ -104,8 +102,7 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); - if (NtQueryVirtualMemory( GetCurrentProcess(), hinstDLL, MemoryWineUnixFuncs, - &ctapi_handle, sizeof(ctapi_handle), NULL )) + if (__wine_init_unix_call()) return FALSE; if (!load_functions()) return FALSE;