Dmitry Timoshkov : crypt32: Make some data const.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Dec 14 14:23:52 CST 2006


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

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Thu Dec 14 22:46:40 2006 +0800

crypt32: Make some data const.

---

 dlls/crypt32/store.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/crypt32/store.c b/dlls/crypt32/store.c
index fab7b78..8c8cda5 100644
--- a/dlls/crypt32/store.c
+++ b/dlls/crypt32/store.c
@@ -1057,7 +1057,7 @@ static void CRYPT_RegReadSerializedFromR
 
 static void CRYPT_RegReadFromReg(PWINE_REGSTOREINFO store)
 {
-    static const WCHAR *subKeys[] = { CertsW, CRLsW, CTLsW };
+    static const WCHAR * const subKeys[] = { CertsW, CRLsW, CTLsW };
     static const DWORD contextFlags[] = { CERT_STORE_CERTIFICATE_CONTEXT_FLAG,
      CERT_STORE_CRL_CONTEXT_FLAG, CERT_STORE_CTL_CONTEXT_FLAG };
     DWORD i;
@@ -1146,8 +1146,8 @@ static BOOL CRYPT_SerializeContextsToReg
 
 static BOOL CRYPT_RegWriteToReg(PWINE_REGSTOREINFO store)
 {
-    static const WCHAR *subKeys[] = { CertsW, CRLsW, CTLsW };
-    static const WINE_CONTEXT_INTERFACE *interfaces[] = { &gCertInterface,
+    static const WCHAR * const subKeys[] = { CertsW, CRLsW, CTLsW };
+    static const WINE_CONTEXT_INTERFACE * const interfaces[] = { &gCertInterface,
      &gCRLInterface, &gCTLInterface };
     struct list *listToDelete[] = { &store->certsToDelete, &store->crlsToDelete,
      NULL };




More information about the wine-cvs mailing list