Module: wine Branch: master Commit: c07b5fc5d9797db2581cd64ec076cd5f47523835 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c07b5fc5d9797db2581cd64ec0...
Author: Paul Vriens Paul.Vriens.Wine@gmail.com Date: Thu Feb 5 10:05:11 2009 +0100
fusion/tests: Do the conversion before testing.
---
dlls/fusion/tests/fusion.c | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/dlls/fusion/tests/fusion.c b/dlls/fusion/tests/fusion.c index 878a18e..b285ba0 100644 --- a/dlls/fusion/tests/fusion.c +++ b/dlls/fusion/tests/fusion.c @@ -34,12 +34,9 @@ static CHAR string1[MAX_PATH], string2[MAX_PATH];
#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); \ - ok(0, format, string1, string2); \ - } + WideCharToMultiByte(CP_ACP, 0, szString1, -1, string1, MAX_PATH, NULL, NULL); \ + WideCharToMultiByte(CP_ACP, 0, szString2, -1, string2, MAX_PATH, NULL, NULL); \ + ok(!lstrcmpA(string1, string2), format, string1, string2)
static BOOL init_functionpointers(void) {