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

Paul Vriens paul.vriens.wine at gmail.com
Sat Jan 13 09:08:11 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/mshtml/tests/htmldoc.c b/dlls/mshtml/tests/htmldoc.c
index 0815c01..99a15cc 100644
--- a/dlls/mshtml/tests/htmldoc.c
+++ b/dlls/mshtml/tests/htmldoc.c
@@ -1803,7 +1803,9 @@ static void test_Load(IPersistMoniker *persist)
 {
     IBindCtx *bind;
     HRESULT hres;
-    static WCHAR sz_html_clientsite_objectparam[] = SZ_HTML_CLIENTSITE_OBJECTPARAM;
+    static WCHAR sz_html_clientsite_objectparam[MAX_PATH];
+
+    lstrcpyW(sz_html_clientsite_objectparam, SZ_HTML_CLIENTSITE_OBJECTPARAM);
 
     test_readyState((IUnknown*)persist);
 
-- 
1.4.4.4



More information about the wine-patches mailing list