fusion/tests: Do the conversion before testing.

This commit is contained in:
Paul Vriens 2009-02-05 10:05:11 +01:00 committed by Alexandre Julliard
parent 7dbba8c335
commit c07b5fc5d9

View File

@ -34,12 +34,9 @@ static CHAR string1[MAX_PATH], string2[MAX_PATH];
#define ok_w2(format, szString1, szString2) \ #define ok_w2(format, szString1, szString2) \
\ \
if (lstrcmpW(szString1, szString2) != 0) \ WideCharToMultiByte(CP_ACP, 0, szString1, -1, string1, MAX_PATH, NULL, NULL); \
{ \ WideCharToMultiByte(CP_ACP, 0, szString2, -1, string2, MAX_PATH, NULL, NULL); \
WideCharToMultiByte(CP_ACP, 0, szString1, -1, string1, MAX_PATH, NULL, NULL); \ ok(!lstrcmpA(string1, string2), format, string1, string2)
WideCharToMultiByte(CP_ACP, 0, szString2, -1, string2, MAX_PATH, NULL, NULL); \
ok(0, format, string1, string2); \
}
static BOOL init_functionpointers(void) static BOOL init_functionpointers(void)
{ {