jscript/tests: Fix crash and failures on win9x.

This commit is contained in:
Paul Vriens 2008-09-11 15:13:10 +02:00 committed by Alexandre Julliard
parent c55f088198
commit 98aaad7810
1 changed files with 3 additions and 3 deletions

View File

@ -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)