Jacek Caban : crypt32: Get rid of no longer used contextSize argument in Context_AddRef.
Alexandre Julliard
julliard at winehq.org
Tue Oct 8 15:41:07 CDT 2013
Module: wine
Branch: master
Commit: f82237102b30baaa70b8ad0702127342bae843c1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f82237102b30baaa70b8ad0702127342bae843c1
Author: Jacek Caban <jacek at codeweavers.com>
Date: Tue Oct 8 16:24:00 2013 +0200
crypt32: Get rid of no longer used contextSize argument in Context_AddRef.
---
dlls/crypt32/cert.c | 2 +-
dlls/crypt32/context.c | 4 ++--
dlls/crypt32/crl.c | 2 +-
dlls/crypt32/crypt32_private.h | 2 +-
dlls/crypt32/ctl.c | 2 +-
5 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/crypt32/cert.c b/dlls/crypt32/cert.c
index 04d16a0..3c60310 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 19fe98a..a31dccf 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 dfb9a60..dc23183 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 6793e3d..d1cc4ad 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 005f6ba..bb29a71 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;
}
More information about the wine-cvs
mailing list