[PATCH 2/2] Fix some test failures on Win9x/WinMe by using a A-function

Paul Vriens Paul.Vriens.Wine at gmail.com
Tue Mar 16 04:18:52 CDT 2010


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

diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c
index 264f9fb..c6f5479 100644
--- a/dlls/mshtml/tests/dom.c
+++ b/dlls/mshtml/tests/dom.c
@@ -3195,8 +3195,6 @@ static void test_screen(IHTMLWindow2 *window)
     HDC hdc;
     HRESULT hres;
 
-    static const WCHAR displayW[] = {'D','I','S','P','L','A','Y',0};
-
     screen = NULL;
     hres = IHTMLWindow2_get_screen(window, &screen);
     ok(hres == S_OK, "get_screen failed: %08x\n", hres);
@@ -3216,7 +3214,7 @@ static void test_screen(IHTMLWindow2 *window)
         IDispatchEx_Release(dispex);
     }
 
-    hdc = CreateICW(displayW, NULL, NULL, NULL);
+    hdc = CreateICA("DISPLAY", NULL, NULL, NULL);
 
     exl = GetDeviceCaps(hdc, HORZRES);
     l = 0xdeadbeef;
-- 
1.6.2.5


--------------050207040703090008060504--



More information about the wine-patches mailing list