Commit 5b7dc90e authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

shell32/tests: Get rid of strcmp_wa().

parent 5066a678
...@@ -83,13 +83,6 @@ static WCHAR *make_wstr(const char *str) ...@@ -83,13 +83,6 @@ static WCHAR *make_wstr(const char *str)
return ret; return ret;
} }
static int strcmp_wa(LPCWSTR strw, const char *stra)
{
CHAR buf[512];
WideCharToMultiByte(CP_ACP, 0, strw, -1, buf, sizeof(buf), NULL, NULL);
return lstrcmpA(stra, buf);
}
static void init_function_pointers(void) static void init_function_pointers(void)
{ {
HMODULE hmod; HMODULE hmod;
...@@ -4503,10 +4496,13 @@ static void r_verify_pidl(unsigned l, LPCITEMIDLIST pidl, const WCHAR *path) ...@@ -4503,10 +4496,13 @@ static void r_verify_pidl(unsigned l, LPCITEMIDLIST pidl, const WCHAR *path)
"didn't get expected path (%s), instead: %s\n", "didn't get expected path (%s), instead: %s\n",
wine_dbgstr_w(path), wine_dbgstr_w(U(filename).pOleStr)); wine_dbgstr_w(path), wine_dbgstr_w(U(filename).pOleStr));
SHFree(U(filename).pOleStr); SHFree(U(filename).pOleStr);
}else if(filename.uType == STRRET_CSTR){ }
ok_(__FILE__,l)(strcmp_wa(path, U(filename).cStr) == 0, else if(filename.uType == STRRET_CSTR)
"didn't get expected path (%s), instead: %s\n", {
WCHAR *strW = make_wstr(U(filename).cStr);
ok_(__FILE__,l)(!lstrcmpW(path, strW), "didn't get expected path (%s), instead: %s\n",
wine_dbgstr_w(path), U(filename).cStr); wine_dbgstr_w(path), U(filename).cStr);
heap_free(strW);
} }
IShellFolder_Release(parent); IShellFolder_Release(parent);
......
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