Commit 8a784a5e authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

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

parent 3aef9ef0
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment