gdi32/tests: Use if(0) instead of #if 0 to make sure the code still compiles.

Francois Gouget fgouget at free.fr
Thu Apr 18 11:57:41 CDT 2013


This also fixes some unused variable warnings.
---
 dlls/gdi32/tests/dib.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/gdi32/tests/dib.c b/dlls/gdi32/tests/dib.c
index e4ed698..76c8263 100644
--- a/dlls/gdi32/tests/dib.c
+++ b/dlls/gdi32/tests/dib.c
@@ -2993,7 +2993,8 @@ static void test_simple_graphics(void)
     SelectObject(mem_dc, orig_bm);
     DeleteObject(dib);
 
-#if 0
+    if (0)
+    {
     /* 24 */
     trace("24\n");
     bmi->bmiHeader.biBitCount = 24;
@@ -3058,7 +3059,7 @@ static void test_simple_graphics(void)
 
     SelectObject(mem_dc, orig_bm);
     DeleteObject(dib);
-#endif
+    }
 
     /* 8 color */
     trace("8 color\n");
-- 
1.7.10.4




More information about the wine-patches mailing list