Jacek Caban : crypt32: Get rid of PCONTEXT_FUNCS typedef.

Alexandre Julliard julliard at winehq.org
Wed Sep 4 15:08:31 CDT 2013


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Sep  4 12:38:27 2013 +0200

crypt32: Get rid of PCONTEXT_FUNCS typedef.

---

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

diff --git a/dlls/crypt32/collectionstore.c b/dlls/crypt32/collectionstore.c
index d17c3b7..57a0513 100644
--- a/dlls/crypt32/collectionstore.c
+++ b/dlls/crypt32/collectionstore.c
@@ -88,11 +88,11 @@ static BOOL CRYPT_CollectionAddContext(PWINE_COLLECTIONSTORE store,
     if (toReplace)
     {
         void *existingLinked = Context_GetLinkedContext(toReplace, contextSize);
-        PCONTEXT_FUNCS contextFuncs;
+        CONTEXT_FUNCS *contextFuncs;
 
         storeEntry = *(PWINE_STORE_LIST_ENTRY *)Context_GetExtra(toReplace,
          contextSize);
-        contextFuncs = (PCONTEXT_FUNCS)((LPBYTE)storeEntry->store +
+        contextFuncs = (CONTEXT_FUNCS*)((LPBYTE)storeEntry->store +
          contextFuncsOffset);
         ret = contextFuncs->addContext(storeEntry->store, context,
          existingLinked, (const void **)&childContext);
@@ -107,7 +107,7 @@ static BOOL CRYPT_CollectionAddContext(PWINE_COLLECTIONSTORE store,
         {
             if (entry->dwUpdateFlags & CERT_PHYSICAL_STORE_ADD_ENABLE_FLAG)
             {
-                PCONTEXT_FUNCS contextFuncs = (PCONTEXT_FUNCS)(
+                CONTEXT_FUNCS *contextFuncs = (CONTEXT_FUNCS*)(
                  (LPBYTE)entry->store + contextFuncsOffset);
 
                 storeEntry = entry;
@@ -168,8 +168,8 @@ static void *CRYPT_CollectionAdvanceEnum(PWINE_COLLECTIONSTORE store,
             size_t offset = (const BYTE *)contextFuncs - (LPBYTE)storeEntry->store;
             PWINE_STORE_LIST_ENTRY storeNextEntry =
              LIST_ENTRY(storeNext, WINE_STORE_LIST_ENTRY, entry);
-            PCONTEXT_FUNCS storeNextContexts =
-             (PCONTEXT_FUNCS)((LPBYTE)storeNextEntry->store + offset);
+            CONTEXT_FUNCS *storeNextContexts =
+             (CONTEXT_FUNCS*)((LPBYTE)storeNextEntry->store + offset);
 
             ret = CRYPT_CollectionAdvanceEnum(store, storeNextEntry,
              storeNextContexts, contextInterface, NULL, contextSize);
diff --git a/dlls/crypt32/crypt32_private.h b/dlls/crypt32/crypt32_private.h
index 94a3e52..e96d244 100644
--- a/dlls/crypt32/crypt32_private.h
+++ b/dlls/crypt32/crypt32_private.h
@@ -225,7 +225,7 @@ typedef struct _CONTEXT_FUNCS
     AddFunc    addContext;
     EnumFunc   enumContext;
     DeleteFunc deleteContext;
-} CONTEXT_FUNCS, *PCONTEXT_FUNCS;
+} CONTEXT_FUNCS;
 
 typedef enum _CertStoreType {
     StoreTypeMem,




More information about the wine-cvs mailing list