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

This commit is contained in:
Paul Vriens 2009-06-06 12:11:45 +02:00 committed by Alexandre Julliard
parent 3aef9ef08e
commit 8a784a5eba
1 changed files with 3 additions and 3 deletions

View File

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