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

Paul Vriens paul.vriens.wine at gmail.com
Sat Jan 13 09:08:55 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/secur32/tests/schannel.c b/dlls/secur32/tests/schannel.c
index 0bbd96b..c289f4b 100644
--- a/dlls/secur32/tests/schannel.c
+++ b/dlls/secur32/tests/schannel.c
@@ -116,11 +116,13 @@ static void testAcquireSecurityContext(void)
     PCCERT_CONTEXT certs[2];
     HCRYPTPROV csp;
     static CHAR unisp_name_a[] = UNISP_NAME_A;
-    static WCHAR ms_def_prov_w[] = MS_DEF_PROV_W;
+    static WCHAR ms_def_prov_w[MAX_PATH];
     BOOL ret;
     HCRYPTKEY key;
     CRYPT_KEY_PROV_INFO keyProvInfo;
 
+    lstrcpyW(ms_def_prov_w, MS_DEF_PROV_W);
+
     keyProvInfo.pwszContainerName = cspNameW;
     keyProvInfo.pwszProvName = ms_def_prov_w;
     keyProvInfo.dwProvType = PROV_RSA_FULL;
-- 
1.4.4.4



More information about the wine-patches mailing list