fusion/tests: Make ok_w2 macro a block (coverity)
André Hentschel
nerv at dawncrow.de
Tue Oct 23 19:05:02 CDT 2012
CID 731785
it's used with if
---
dlls/fusion/tests/fusion.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/dlls/fusion/tests/fusion.c b/dlls/fusion/tests/fusion.c
index 6ebd455..ec25f75 100644
--- a/dlls/fusion/tests/fusion.c
+++ b/dlls/fusion/tests/fusion.c
@@ -33,10 +33,11 @@ static HRESULT (WINAPI *pGetCORVersion)(LPWSTR pbuffer, DWORD cchBuffer,
static CHAR string1[MAX_PATH], string2[MAX_PATH];
#define ok_w2(format, szString1, szString2) \
-\
- 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)
+ do { \
+ 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); \
+ } while(0)
static BOOL init_functionpointers(void)
{
--
1.8.0
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list