Commit f3404064 authored by Alexandre Julliard's avatar Alexandre Julliard

crypt32: Use the Unix call helpers.

parent a4f8d28d
......@@ -508,8 +508,6 @@ enum unix_funcs
unix_enum_root_certs,
};
extern unixlib_handle_t crypt32_handle;
#define CRYPT32_CALL( func, params ) __wine_unix_call( crypt32_handle, unix_ ## func, params )
#define CRYPT32_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )
#endif
......@@ -35,7 +35,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(crypt);
static HCRYPTPROV hDefProv;
HINSTANCE hInstance;
unixlib_handle_t crypt32_handle = 0;
static CRITICAL_SECTION prov_param_cs;
static CRITICAL_SECTION_DEBUG prov_param_cs_debug =
......@@ -56,8 +55,7 @@ BOOL WINAPI DllMain(HINSTANCE hInst, DWORD reason, PVOID pvReserved)
DisableThreadLibraryCalls(hInst);
init_empty_store();
crypt_oid_init();
if (NtQueryVirtualMemory( GetCurrentProcess(), hInst, MemoryWineUnixFuncs,
&crypt32_handle, sizeof(crypt32_handle), NULL ))
if (__wine_init_unix_call())
return FALSE;
CRYPT32_CALL( process_attach, NULL );
break;
......
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