diff --git a/dlls/crypt32/collectionstore.c b/dlls/crypt32/collectionstore.c index 677f7bdde62..6ab2d2b0580 100644 --- a/dlls/crypt32/collectionstore.c +++ b/dlls/crypt32/collectionstore.c @@ -87,7 +87,7 @@ static BOOL CRYPT_CollectionAddContext(WINE_COLLECTIONSTORE *store, ret = FALSE; if (toReplace) { - void *existingLinked = Context_GetLinkedContext(toReplace, contextSize); + void *existingLinked = Context_GetLinkedContext(toReplace); CONTEXT_FUNCS *contextFuncs; storeEntry = *(WINE_STORE_LIST_ENTRY **)Context_GetExtra(toReplace, @@ -147,7 +147,7 @@ static void *CRYPT_CollectionAdvanceEnum(WINE_COLLECTIONSTORE *store, /* Ref-counting funny business: "duplicate" (addref) the child, because * the free(pPrev) below can cause the ref count to become negative. */ - child = Context_GetLinkedContext(pPrev, contextSize); + child = Context_GetLinkedContext(pPrev); contextInterface->duplicate(child); child = contextFuncs->enumContext(storeEntry->store, child); contextInterface->free(pPrev); @@ -265,7 +265,7 @@ static BOOL CRYPT_CollectionDeleteCert(WINECRYPT_CERTSTORE *store, * CertFreeCertificateContext. Increase ref count of linked context to * compensate. */ - linked = Context_GetLinkedContext(pCertContext, sizeof(CERT_CONTEXT)); + linked = Context_GetLinkedContext(pCertContext); CertDuplicateCertificateContext(linked); ret = CertDeleteCertificateFromStore(linked); return ret; @@ -349,7 +349,7 @@ static BOOL CRYPT_CollectionDeleteCRL(WINECRYPT_CERTSTORE *store, void *pCrlCont * decreases pCrlContext's ref count, by calling CertFreeCRLContext. * Increase ref count of linked context to compensate. */ - linked = Context_GetLinkedContext(pCrlContext, sizeof(CRL_CONTEXT)); + linked = Context_GetLinkedContext(pCrlContext); CertDuplicateCRLContext(linked); ret = CertDeleteCRLFromStore(linked); return ret; @@ -433,7 +433,7 @@ static BOOL CRYPT_CollectionDeleteCTL(WINECRYPT_CERTSTORE *store, * decreases pCtlContext's ref count, by calling CertFreeCTLContext. * Increase ref count of linked context to compensate. */ - linked = Context_GetLinkedContext(pCtlContext, sizeof(CTL_CONTEXT)); + linked = Context_GetLinkedContext(pCtlContext); CertDuplicateCTLContext(linked); ret = CertDeleteCTLFromStore(linked); return ret; diff --git a/dlls/crypt32/context.c b/dlls/crypt32/context.c index a31dccf6709..d57e0bf81c9 100644 --- a/dlls/crypt32/context.c +++ b/dlls/crypt32/context.c @@ -123,7 +123,7 @@ void *Context_GetExtra(const void *context, size_t contextSize) return (LPBYTE)CONTEXT_FROM_BASE_CONTEXT(baseContext) + contextSize; } -void *Context_GetLinkedContext(void *context, size_t contextSize) +void *Context_GetLinkedContext(void *context) { BASE_CONTEXT *baseContext = BASE_CONTEXT_FROM_CONTEXT(context); diff --git a/dlls/crypt32/crypt32_private.h b/dlls/crypt32/crypt32_private.h index d1cc4ad1881..5a0232f04d0 100644 --- a/dlls/crypt32/crypt32_private.h +++ b/dlls/crypt32/crypt32_private.h @@ -348,7 +348,7 @@ void *Context_CreateLinkContext(unsigned int contextSize, void *linked, unsigned void *Context_GetExtra(const void *context, size_t contextSize) DECLSPEC_HIDDEN; /* Gets the context linked to by context, which must be a link context. */ -void *Context_GetLinkedContext(void *context, size_t contextSize) DECLSPEC_HIDDEN; +void *Context_GetLinkedContext(void *context) DECLSPEC_HIDDEN; /* Copies properties from fromContext to toContext. */ void Context_CopyProperties(const void *to, const void *from,