crypt32: Get rid of no longer used contextSize argument in Context_Release.
This commit is contained in:
parent
c6fd036b54
commit
c1fa23ac5d
@ -203,8 +203,7 @@ BOOL WINAPI CertFreeCertificateContext(PCCERT_CONTEXT pCertContext)
|
|||||||
TRACE("(%p)\n", pCertContext);
|
TRACE("(%p)\n", pCertContext);
|
||||||
|
|
||||||
if (pCertContext)
|
if (pCertContext)
|
||||||
ret = Context_Release((void *)pCertContext, sizeof(CERT_CONTEXT),
|
ret = Context_Release((void *)pCertContext, CertDataContext_Free);
|
||||||
CertDataContext_Free);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -141,8 +141,7 @@ CONTEXT_PROPERTY_LIST *Context_GetProperties(const void *context)
|
|||||||
return (ptr && ptr->type == ContextTypeData) ? ptr->u.properties : NULL;
|
return (ptr && ptr->type == ContextTypeData) ? ptr->u.properties : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL Context_Release(void *context, size_t contextSize,
|
BOOL Context_Release(void *context, ContextFreeFunc dataContextFree)
|
||||||
ContextFreeFunc dataContextFree)
|
|
||||||
{
|
{
|
||||||
BASE_CONTEXT *base = BASE_CONTEXT_FROM_CONTEXT(context);
|
BASE_CONTEXT *base = BASE_CONTEXT_FROM_CONTEXT(context);
|
||||||
BOOL ret = TRUE;
|
BOOL ret = TRUE;
|
||||||
@ -158,7 +157,7 @@ BOOL Context_Release(void *context, size_t contextSize,
|
|||||||
* it as well, using the same offset and data free function.
|
* it as well, using the same offset and data free function.
|
||||||
*/
|
*/
|
||||||
ret = Context_Release(CONTEXT_FROM_BASE_CONTEXT(
|
ret = Context_Release(CONTEXT_FROM_BASE_CONTEXT(
|
||||||
base->u.linked), contextSize, dataContextFree);
|
base->u.linked), dataContextFree);
|
||||||
}
|
}
|
||||||
if (InterlockedDecrement(&base->ref) == 0)
|
if (InterlockedDecrement(&base->ref) == 0)
|
||||||
{
|
{
|
||||||
|
@ -346,8 +346,7 @@ BOOL WINAPI CertFreeCRLContext( PCCRL_CONTEXT pCrlContext)
|
|||||||
TRACE("(%p)\n", pCrlContext);
|
TRACE("(%p)\n", pCrlContext);
|
||||||
|
|
||||||
if (pCrlContext)
|
if (pCrlContext)
|
||||||
ret = Context_Release((void *)pCrlContext, sizeof(CRL_CONTEXT),
|
ret = Context_Release((void *)pCrlContext, CrlDataContext_Free);
|
||||||
CrlDataContext_Free);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -368,8 +368,7 @@ typedef void (*ContextFreeFunc)(void *context);
|
|||||||
* If a data context has its ref count reach 0, calls dataContextFree on it.
|
* If a data context has its ref count reach 0, calls dataContextFree on it.
|
||||||
* Returns FALSE if the reference count is <= 0 when called.
|
* Returns FALSE if the reference count is <= 0 when called.
|
||||||
*/
|
*/
|
||||||
BOOL Context_Release(void *context, size_t contextSize,
|
BOOL Context_Release(void *context, ContextFreeFunc dataContextFree) DECLSPEC_HIDDEN;
|
||||||
ContextFreeFunc dataContextFree) DECLSPEC_HIDDEN;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Context property list functions
|
* Context property list functions
|
||||||
|
@ -481,8 +481,7 @@ BOOL WINAPI CertFreeCTLContext(PCCTL_CONTEXT pCTLContext)
|
|||||||
TRACE("(%p)\n", pCTLContext);
|
TRACE("(%p)\n", pCTLContext);
|
||||||
|
|
||||||
if (pCTLContext)
|
if (pCTLContext)
|
||||||
ret = Context_Release((void *)pCTLContext, sizeof(CTL_CONTEXT),
|
ret = Context_Release((void *)pCTLContext, CTLDataContext_Free);
|
||||||
CTLDataContext_Free);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user