[crypt32/tests] Fix compilation for older gcc versions (and MinGW)

Paul Vriens paul.vriens.wine at gmail.com
Sat Jan 13 09:07:10 CST 2007


Hi,

this should fix the compilation issues report by Marcus. It also fixes the 
compilation for the crosstests.

Changelog
   Fix compilation for older gcc versions (and MinGW)

Cheers,

Paul.
-------------- next part --------------
diff --git a/dlls/crypt32/tests/cert.c b/dlls/crypt32/tests/cert.c
index 963de41..05a796e 100644
--- a/dlls/crypt32/tests/cert.c
+++ b/dlls/crypt32/tests/cert.c
@@ -309,7 +309,6 @@ static void checkHash(const BYTE *data, DWORD dataLen, ALG_ID algID,
 }
 
 static WCHAR cspNameW[] = { 'W','i','n','e','C','r','y','p','t','T','e','m','p',0 };
-static WCHAR ms_def_prov_w[] = MS_DEF_PROV_W;
 
 static void testCertProperties(void)
 {
@@ -1824,6 +1823,9 @@ static void testAcquireCertPrivateKey(void)
     BOOL callerFree;
     CRYPT_KEY_PROV_INFO keyProvInfo;
     HCRYPTKEY key;
+    static WCHAR ms_def_prov_w[MAX_PATH];
+
+    lstrcpyW(ms_def_prov_w, MS_DEF_PROV_W);
 
     keyProvInfo.pwszContainerName = cspNameW;
     keyProvInfo.pwszProvName = ms_def_prov_w;
-- 
1.4.4.4



More information about the wine-patches mailing list