mshtml/tests: Use lstrcmpA in a helper function to make it work correctly on Win98.
This commit is contained in:
parent
3aef9ef08e
commit
8a784a5eba
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue