crypt32: Use externed vars for context variables.
This commit is contained in:
parent
6aa10439a9
commit
2a8aa87878
|
@ -1036,13 +1036,13 @@ static void CRYPT_RegReadSerializedFromReg(const WINE_REGSTOREINFO *store, HKEY
|
||||||
switch (addedType)
|
switch (addedType)
|
||||||
{
|
{
|
||||||
case CERT_STORE_CERTIFICATE_CONTEXT:
|
case CERT_STORE_CERTIFICATE_CONTEXT:
|
||||||
contextInterface = &gCertInterface;
|
contextInterface = pCertInterface;
|
||||||
break;
|
break;
|
||||||
case CERT_STORE_CRL_CONTEXT:
|
case CERT_STORE_CRL_CONTEXT:
|
||||||
contextInterface = &gCRLInterface;
|
contextInterface = pCRLInterface;
|
||||||
break;
|
break;
|
||||||
case CERT_STORE_CTL_CONTEXT:
|
case CERT_STORE_CTL_CONTEXT:
|
||||||
contextInterface = &gCTLInterface;
|
contextInterface = pCTLInterface;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
contextInterface = NULL;
|
contextInterface = NULL;
|
||||||
|
@ -1175,8 +1175,8 @@ static BOOL CRYPT_SerializeContextsToReg(HKEY key,
|
||||||
static BOOL CRYPT_RegWriteToReg(PWINE_REGSTOREINFO store)
|
static BOOL CRYPT_RegWriteToReg(PWINE_REGSTOREINFO store)
|
||||||
{
|
{
|
||||||
static const WCHAR * const subKeys[] = { CertsW, CRLsW, CTLsW };
|
static const WCHAR * const subKeys[] = { CertsW, CRLsW, CTLsW };
|
||||||
static const WINE_CONTEXT_INTERFACE * const interfaces[] = { &gCertInterface,
|
const WINE_CONTEXT_INTERFACE * const interfaces[] = { pCertInterface,
|
||||||
&gCRLInterface, &gCTLInterface };
|
pCRLInterface, pCTLInterface };
|
||||||
struct list *listToDelete[] = { &store->certsToDelete, &store->crlsToDelete,
|
struct list *listToDelete[] = { &store->certsToDelete, &store->crlsToDelete,
|
||||||
NULL };
|
NULL };
|
||||||
BOOL ret = TRUE;
|
BOOL ret = TRUE;
|
||||||
|
|
Loading…
Reference in New Issue