crypt32/tests: Write-strings warnings fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Fri Jun 2 12:40:55 CDT 2006
Changelog:
crypt32/tests: Write-strings warnings fix.
diff -urN a/dlls/crypt32/tests/encode.c b/dlls/crypt32/tests/encode.c
--- a/dlls/crypt32/tests/encode.c 2006-06-02 17:19:59.000000000 +0100
+++ b/dlls/crypt32/tests/encode.c 2006-06-02 17:54:14.000000000 +0100
@@ -716,6 +716,8 @@
CERT_NAME_INFO info;
BYTE *buf = NULL;
DWORD size = 0, i;
+ static CHAR oid_common_name[] = szOID_COMMON_NAME,
+ oid_sur_name[] = szOID_SUR_NAME;
BOOL ret;
/* Test with NULL pvStructInfo */
@@ -776,11 +778,11 @@
/* Check with two CERT_RDN_ATTRs. Note DER encoding forces the order of
* the encoded attributes to be swapped.
*/
- attrs[0].pszObjId = szOID_COMMON_NAME;
+ attrs[0].pszObjId = oid_common_name;
attrs[0].dwValueType = CERT_RDN_PRINTABLE_STRING;
attrs[0].Value.cbData = sizeof(commonName);
attrs[0].Value.pbData = (BYTE *)commonName;
- attrs[1].pszObjId = szOID_SUR_NAME;
+ attrs[1].pszObjId = oid_sur_name;
attrs[1].dwValueType = CERT_RDN_PRINTABLE_STRING;
attrs[1].Value.cbData = sizeof(surName);
attrs[1].Value.pbData = (BYTE *)surName;
More information about the wine-patches
mailing list