jscript/tests: Fix crash and failures on win9x.
This commit is contained in:
parent
c55f088198
commit
98aaad7810
|
@ -101,9 +101,9 @@ static BSTR a2bstr(const char *str)
|
||||||
|
|
||||||
static int strcmp_wa(LPCWSTR strw, const char *stra)
|
static int strcmp_wa(LPCWSTR strw, const char *stra)
|
||||||
{
|
{
|
||||||
WCHAR buf[512];
|
CHAR buf[512];
|
||||||
MultiByteToWideChar(CP_ACP, 0, stra, -1, buf, sizeof(buf)/sizeof(WCHAR));
|
WideCharToMultiByte(CP_ACP, 0, strw, -1, buf, sizeof(buf), 0, 0);
|
||||||
return lstrcmpW(strw, buf);
|
return lstrcmpA(buf, stra);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI DispatchEx_QueryInterface(IDispatchEx *iface, REFIID riid, void **ppv)
|
static HRESULT WINAPI DispatchEx_QueryInterface(IDispatchEx *iface, REFIID riid, void **ppv)
|
||||||
|
|
Loading…
Reference in New Issue