Commit 81493d0f authored by Alexandre Julliard's avatar Alexandre Julliard

ctapi32: Use the Unix call helpers.

parent 6677255d
......@@ -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;
......
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