From 9c9e8dd141fb90d2a448dda15c803d5e3907157b Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 16 Dec 2011 19:47:27 +0100 Subject: [PATCH] comctl32/tests: Fix a test failure on older Windows. --- dlls/comctl32/tests/imagelist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/comctl32/tests/imagelist.c b/dlls/comctl32/tests/imagelist.c index 85eb13e0b4e..588a5b38735 100644 --- a/dlls/comctl32/tests/imagelist.c +++ b/dlls/comctl32/tests/imagelist.c @@ -771,7 +771,8 @@ static void check_ilhead_data(const char *ilh_data, INT cx, INT cy, INT cur, INT ok(ilh->cx == cx, "wrong cx %d (expected %d)\n", ilh->cx, cx); ok(ilh->cy == cy, "wrong cy %d (expected %d)\n", ilh->cy, cy); ok(ilh->bkcolor == CLR_NONE, "wrong bkcolor %x\n", ilh->bkcolor); - ok(ilh->flags == flags, "wrong flags %04x\n", ilh->flags); + ok(ilh->flags == flags || broken(!(ilh->flags & 0xfe) && (flags & 0xfe) == ILC_COLOR4), /* <= w2k */ + "wrong flags %04x\n", ilh->flags); ok(ilh->ovls[0] == -1, "wrong ovls[0] %04x\n", ilh->ovls[0]); ok(ilh->ovls[1] == -1, "wrong ovls[1] %04x\n", ilh->ovls[1]); ok(ilh->ovls[2] == -1, "wrong ovls[2] %04x\n", ilh->ovls[2]);