1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-01 07:14:31 +00:00

crypt32: Use the Unix call helpers.

This commit is contained in:
Alexandre Julliard 2022-11-25 10:10:59 +01:00
parent a4f8d28de7
commit f340406417
2 changed files with 2 additions and 6 deletions

View File

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

View File

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