From 1d4aeae7aacdd190354898b90b68fbec8428c9b7 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Thu, 14 Dec 2006 18:10:47 +0100 Subject: [PATCH] user32/tests: Replace some '#if 0's with 'if (0)'s. Fix the code so it compiles without warnings. --- dlls/user32/tests/class.c | 5 +++-- dlls/user32/tests/clipboard.c | 5 +++-- dlls/user32/tests/msg.c | 28 ++++++++++++++--------- dlls/user32/tests/sysparams.c | 12 ++++++---- dlls/user32/tests/win.c | 42 ++++++++++++++++++++++------------- 5 files changed, 57 insertions(+), 35 deletions(-) diff --git a/dlls/user32/tests/class.c b/dlls/user32/tests/class.c index a8475295880..aa7ef5a1d48 100644 --- a/dlls/user32/tests/class.c +++ b/dlls/user32/tests/class.c @@ -90,7 +90,8 @@ static void ClassTest(HINSTANCE hInstance, BOOL global) "GetClassLongW failed!\n"); } -#if 0 + if (0) + { /* * GetClassLongW(hTestWnd, NUMCLASSWORDS*sizeof(DWORD)) * does not fail on Win 98, though MSDN says it should @@ -99,7 +100,7 @@ static void ClassTest(HINSTANCE hInstance, BOOL global) GetClassLongW(hTestWnd, NUMCLASSWORDS*sizeof(DWORD)); ok(GetLastError(), "GetClassLongW() with invalid offset did not fail\n"); -#endif + } /* set values of valid class words */ for(i=0; i