crypt32/tests: Constify some character strings
Frédéric Delanoy
frederic.delanoy at gmail.com
Sat Dec 21 07:32:21 CST 2013
---
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);
--
1.8.5.2
More information about the wine-patches
mailing list