MSHTML: Tests crash fix

Jacek Caban jack at itma.pwr.wroc.pl
Mon Jul 25 11:41:46 CDT 2005


Although argument of RegisterClassEx is const,
XP (and probably NT 4, 2k, 2k3 - not tested)
clash, because they try to modify passed
WNDCLASSEX's hInstance. I'll send more about
this bug to wine-devel.

Changelog:
    Tests crash fix

-------------- next part --------------
Index: dlls/mshtml/tests/htmldoc.c
===================================================================
RCS file: /home/wine/wine/dlls/mshtml/tests/htmldoc.c,v
retrieving revision 1.4
diff -u -p -r1.4 htmldoc.c
--- dlls/mshtml/tests/htmldoc.c	18 Jul 2005 09:13:32 -0000	1.4
+++ dlls/mshtml/tests/htmldoc.c	25 Jul 2005 16:15:16 -0000
@@ -819,7 +819,7 @@ static void test_HTMLDocument(void)
 
     static const WCHAR wszHTMLDocumentTest[] =
         {'H','T','M','L','D','o','c','u','m','e','n','t','T','e','s','t',0};
-    static const WNDCLASSEXW wndclass = {
+    static WNDCLASSEXW wndclass = {
         sizeof(WNDCLASSEXW),
         0,
         wnd_proc,


More information about the wine-patches mailing list