=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: comctl32/tests: Avoid preprocessor checks to ensure it compiles.
Alexandre Julliard
julliard at winehq.org
Mon Jan 27 13:32:54 CST 2014
Module: wine
Branch: master
Commit: e32237d34ade0f29af579fde39dd85ac34f6f9b7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e32237d34ade0f29af579fde39dd85ac34f6f9b7
Author: André Hentschel <nerv at dawncrow.de>
Date: Wed Jan 22 22:32:17 2014 +0100
comctl32/tests: Avoid preprocessor checks to ensure it compiles.
---
dlls/comctl32/tests/imagelist.c | 5 +++--
dlls/comctl32/tests/monthcal.c | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/dlls/comctl32/tests/imagelist.c b/dlls/comctl32/tests/imagelist.c
index caf7539..38fb744 100644
--- a/dlls/comctl32/tests/imagelist.c
+++ b/dlls/comctl32/tests/imagelist.c
@@ -809,7 +809,8 @@ static ULONG check_bitmap_data(const char *bm_data, ULONG bm_data_size,
image_size = DIB_GetWidthBytes(bmih->biWidth, bmih->biBitCount) * bmih->biHeight;
ok(bmih->biSizeImage == image_size, "wrong biSizeImage %u\n", bmih->biSizeImage);
-#if 0
+
+if (0)
{
char fname[256];
FILE *f;
@@ -818,7 +819,7 @@ static ULONG check_bitmap_data(const char *bm_data, ULONG bm_data_size,
fwrite(bm_data, 1, bm_data_size, f);
fclose(f);
}
-#endif
+
return hdr_size + image_size;
}
diff --git a/dlls/comctl32/tests/monthcal.c b/dlls/comctl32/tests/monthcal.c
index 145d20f..78ef541 100644
--- a/dlls/comctl32/tests/monthcal.c
+++ b/dlls/comctl32/tests/monthcal.c
@@ -1082,7 +1082,8 @@ static void test_hittest(void)
expect(mchit.uHit, res);
expect_hex(MCHT_CALENDARDATEPREV, res);
-#if 0
+if (0)
+{
/* (125, 115) is in active area - date from this month */
mchit.pt.x = 125;
mchit.pt.y = 115;
@@ -1091,7 +1092,7 @@ static void test_hittest(void)
expect(115, mchit.pt.y);
expect(mchit.uHit, res);
expect(MCHT_CALENDARDATE, res);
-#endif
+}
/* in active area - date from next month */
mchit.pt.x = 11 * r.right / 14;
More information about the wine-cvs
mailing list