Commit 2a8aa878 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Use externed vars for context variables.

parent 6aa10439
...@@ -1036,13 +1036,13 @@ static void CRYPT_RegReadSerializedFromReg(const WINE_REGSTOREINFO *store, HKEY ...@@ -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, ...@@ -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;
......
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