Jacek Caban : crypt32: Get rid of no longer used contextSize argument in Context_GetLinkedContext .

Alexandre Julliard julliard at winehq.org
Tue Oct 8 15:41:07 CDT 2013


Module: wine
Branch: master
Commit: 5b5bb5085251043d01c356f03925633378e29ee2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5b5bb5085251043d01c356f03925633378e29ee2

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue Oct  8 16:24:09 2013 +0200

crypt32: Get rid of no longer used contextSize argument in Context_GetLinkedContext.

---

 dlls/crypt32/collectionstore.c |   10 +++++-----
 dlls/crypt32/context.c         |    2 +-
 dlls/crypt32/crypt32_private.h |    2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dlls/crypt32/collectionstore.c b/dlls/crypt32/collectionstore.c
index 677f7bd..6ab2d2b 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 a31dccf..d57e0bf 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 d1cc4ad..5a0232f 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,




More information about the wine-cvs mailing list