Paul Vriens : mshtml/tests: Use lstrcmpA in a helper function to make it work correctly on Win98.

Alexandre Julliard julliard at winehq.org
Mon Jun 8 09:44:44 CDT 2009


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Sat Jun  6 12:11:45 2009 +0200

mshtml/tests: Use lstrcmpA in a helper function to make it work correctly on Win98.

---

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

diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c
index 8951bf2..99e5d2a 100644
--- a/dlls/mshtml/tests/dom.c
+++ b/dlls/mshtml/tests/dom.c
@@ -374,9 +374,9 @@ static const char *dbgstr_guid(REFIID riid)
 
 static int strcmp_wa(LPCWSTR strw, const char *stra)
 {
-    WCHAR buf[512];
-    MultiByteToWideChar(CP_ACP, 0, stra, -1, buf, sizeof(buf)/sizeof(WCHAR));
-    return lstrcmpW(strw, buf);
+    CHAR buf[512];
+    WideCharToMultiByte(CP_ACP, 0, strw, -1, buf, sizeof(buf), NULL, NULL);
+    return lstrcmpA(stra, buf);
 }
 
 static BSTR a2bstr(const char *str)




More information about the wine-cvs mailing list