mirror of
https://github.com/wine-mirror/wine
synced 2024-07-05 17:28:47 +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,
|
unix_enum_root_certs,
|
||||||
};
|
};
|
||||||
|
|
||||||
extern unixlib_handle_t crypt32_handle;
|
#define CRYPT32_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )
|
||||||
|
|
||||||
#define CRYPT32_CALL( func, params ) __wine_unix_call( crypt32_handle, unix_ ## func, params )
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -35,7 +35,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(crypt);
|
||||||
|
|
||||||
static HCRYPTPROV hDefProv;
|
static HCRYPTPROV hDefProv;
|
||||||
HINSTANCE hInstance;
|
HINSTANCE hInstance;
|
||||||
unixlib_handle_t crypt32_handle = 0;
|
|
||||||
|
|
||||||
static CRITICAL_SECTION prov_param_cs;
|
static CRITICAL_SECTION prov_param_cs;
|
||||||
static CRITICAL_SECTION_DEBUG prov_param_cs_debug =
|
static CRITICAL_SECTION_DEBUG prov_param_cs_debug =
|
||||||
|
@ -56,8 +55,7 @@ BOOL WINAPI DllMain(HINSTANCE hInst, DWORD reason, PVOID pvReserved)
|
||||||
DisableThreadLibraryCalls(hInst);
|
DisableThreadLibraryCalls(hInst);
|
||||||
init_empty_store();
|
init_empty_store();
|
||||||
crypt_oid_init();
|
crypt_oid_init();
|
||||||
if (NtQueryVirtualMemory( GetCurrentProcess(), hInst, MemoryWineUnixFuncs,
|
if (__wine_init_unix_call())
|
||||||
&crypt32_handle, sizeof(crypt32_handle), NULL ))
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
CRYPT32_CALL( process_attach, NULL );
|
CRYPT32_CALL( process_attach, NULL );
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user