=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: crypt32/tests: Constify some character strings.

Alexandre Julliard julliard at winehq.org
Mon Dec 23 13:44:57 CST 2013


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

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Sat Dec 21 14:32:21 2013 +0100

crypt32/tests: Constify some character strings.

---

 dlls/crypt32/tests/cert.c   |    2 +-
 dlls/crypt32/tests/encode.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/crypt32/tests/cert.c b/dlls/crypt32/tests/cert.c
index a117332..bd67c18 100644
--- a/dlls/crypt32/tests/cert.c
+++ b/dlls/crypt32/tests/cert.c
@@ -351,7 +351,7 @@ static void checkHash(const BYTE *data, DWORD dataLen, ALG_ID algID,
      dwSizeWithNull,size);
 }
 
-static CHAR cspNameA[] = "WineCryptTemp";
+static const CHAR cspNameA[] = "WineCryptTemp";
 static WCHAR cspNameW[] = { 'W','i','n','e','C','r','y','p','t','T','e','m','p',0 };
 static const BYTE v1CertWithPubKey[] = {
 0x30,0x81,0x95,0x02,0x01,0x01,0x30,0x02,0x06,0x00,0x30,0x15,0x31,0x13,0x30,
diff --git a/dlls/crypt32/tests/encode.c b/dlls/crypt32/tests/encode.c
index 61d5c72..ad38fd5 100644
--- a/dlls/crypt32/tests/encode.c
+++ b/dlls/crypt32/tests/encode.c
@@ -6911,7 +6911,7 @@ static void test_decodeCMSSignerInfo(DWORD dwEncoding)
     LPBYTE buf = NULL;
     DWORD size = 0;
     CMSG_CMS_SIGNER_INFO *info;
-    static char oid1[] = "1.2.3", oid2[] = "1.5.6";
+    static const char oid1[] = "1.2.3", oid2[] = "1.5.6";
 
     /* A CMS signer can't be decoded without a serial number. */
     SetLastError(0xdeadbeef);




More information about the wine-cvs mailing list