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:
parent
a4f8d28de7
commit
f340406417
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user