1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00

ctapi32: Use the Unix call helpers.

This commit is contained in:
Alexandre Julliard 2022-11-28 11:39:45 +01:00
parent 6677255d66
commit 81493d0f8c

View File

@ -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;