diff --git a/dlls/crypt32/cert.c b/dlls/crypt32/cert.c index 04d16a0ec2b..3c603107d34 100644 --- a/dlls/crypt32/cert.c +++ b/dlls/crypt32/cert.c @@ -184,7 +184,7 @@ PCCERT_CONTEXT WINAPI CertDuplicateCertificateContext( if (!pCertContext) return NULL; - Context_AddRef((void *)pCertContext, sizeof(CERT_CONTEXT)); + Context_AddRef((void *)pCertContext); return pCertContext; } diff --git a/dlls/crypt32/context.c b/dlls/crypt32/context.c index 19fe98abfbe..a31dccf6709 100644 --- a/dlls/crypt32/context.c +++ b/dlls/crypt32/context.c @@ -81,13 +81,13 @@ void *Context_CreateLinkContext(unsigned int contextSize, void *linked, unsigned context->type = ContextTypeLink; context->u.linked = BASE_CONTEXT_FROM_CONTEXT(linked); if (addRef) - Context_AddRef(linked, contextSize); + Context_AddRef(linked); TRACE("returning %p\n", context); return CONTEXT_FROM_BASE_CONTEXT(context); } -void Context_AddRef(void *context, size_t contextSize) +void Context_AddRef(void *context) { BASE_CONTEXT *baseContext = BASE_CONTEXT_FROM_CONTEXT(context); diff --git a/dlls/crypt32/crl.c b/dlls/crypt32/crl.c index dfb9a601082..dc23183fb81 100644 --- a/dlls/crypt32/crl.c +++ b/dlls/crypt32/crl.c @@ -327,7 +327,7 @@ PCCRL_CONTEXT WINAPI CertDuplicateCRLContext(PCCRL_CONTEXT pCrlContext) { TRACE("(%p)\n", pCrlContext); if (pCrlContext) - Context_AddRef((void *)pCrlContext, sizeof(CRL_CONTEXT)); + Context_AddRef((void *)pCrlContext); return pCrlContext; } diff --git a/dlls/crypt32/crypt32_private.h b/dlls/crypt32/crypt32_private.h index 6793e3dd8f6..d1cc4ad1881 100644 --- a/dlls/crypt32/crypt32_private.h +++ b/dlls/crypt32/crypt32_private.h @@ -359,7 +359,7 @@ void Context_CopyProperties(const void *to, const void *from, */ CONTEXT_PROPERTY_LIST *Context_GetProperties(const void *context, size_t contextSize) DECLSPEC_HIDDEN; -void Context_AddRef(void *context, size_t contextSize) DECLSPEC_HIDDEN; +void Context_AddRef(void *context) DECLSPEC_HIDDEN; typedef void (*ContextFreeFunc)(void *context); diff --git a/dlls/crypt32/ctl.c b/dlls/crypt32/ctl.c index 005f6bad8d5..bb29a715fed 100644 --- a/dlls/crypt32/ctl.c +++ b/dlls/crypt32/ctl.c @@ -460,7 +460,7 @@ PCCTL_CONTEXT WINAPI CertDuplicateCTLContext(PCCTL_CONTEXT pCtlContext) { TRACE("(%p)\n", pCtlContext); if (pCtlContext) - Context_AddRef((void *)pCtlContext, sizeof(CTL_CONTEXT)); + Context_AddRef((void *)pCtlContext); return pCtlContext; }