Paul Vriens : secur32/tests: Fix compilation for older gcc versions ( and MinGW).

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jan 15 07:43:16 CST 2007


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

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Sat Jan 13 16:08:55 2007 +0100

secur32/tests: Fix compilation for older gcc versions (and MinGW).

---

 dlls/secur32/tests/schannel.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/secur32/tests/schannel.c b/dlls/secur32/tests/schannel.c
index 0bbd96b..b71040a 100644
--- a/dlls/secur32/tests/schannel.c
+++ b/dlls/secur32/tests/schannel.c
@@ -116,11 +116,13 @@ static void testAcquireSecurityContext(v
     PCCERT_CONTEXT certs[2];
     HCRYPTPROV csp;
     static CHAR unisp_name_a[] = UNISP_NAME_A;
-    static WCHAR ms_def_prov_w[] = MS_DEF_PROV_W;
+    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;




More information about the wine-cvs mailing list