[PATCH] Fix crash and failures on win9x
Paul Vriens
Paul.Vriens.Wine at gmail.com
Thu Sep 11 08:13:10 CDT 2008
---
dlls/jscript/tests/run.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/jscript/tests/run.c b/dlls/jscript/tests/run.c
index bb8b47f..3409b7e 100644
--- a/dlls/jscript/tests/run.c
+++ b/dlls/jscript/tests/run.c
@@ -101,9 +101,9 @@ static BSTR a2bstr(const char *str)
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), 0, 0);
+ return lstrcmpA(buf, stra);
}
static HRESULT WINAPI DispatchEx_QueryInterface(IDispatchEx *iface, REFIID riid, void **ppv)
--
1.5.4.1
--------------000805090700010300060508--
More information about the wine-patches
mailing list