comctl32/tests: Avoid preprocessor checks to ensure it compiles
André Hentschel
nerv at dawncrow.de
Wed Jan 22 15:32:17 CST 2014
---
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;
--
1.8.1.2
More information about the wine-patches
mailing list