[4/6] gdiplus/tests: Fix the test for flags of an empty region.

Dmitry Timoshkov dmitry at baikal.ru
Fri Nov 8 01:33:39 CST 2013


---
 dlls/gdiplus/tests/region.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/gdiplus/tests/region.c b/dlls/gdiplus/tests/region.c
index d19d919..3e6f902 100644
--- a/dlls/gdiplus/tests/region.c
+++ b/dlls/gdiplus/tests/region.c
@@ -370,8 +370,8 @@ static void test_getregiondata(void)
     expect_magic(buf + 6);
     expect_dword(buf + 7, 0);
     /* flags 0 means that a path is an array of FLOATs */
-    ok((*(buf + 8) & (~ 0x00004000)) == 0x00000000,
-       "expected 00000000 got %08x\n", *(buf + 8) & (~ 0x00004000));
+    ok(*(buf + 8) == 0x4000 /* before win7 */ || *(buf + 8) == 0,
+       "expected 0x4000 or 0, got %08x\n", *(buf + 8));
 
     /* Transform an empty region */
     status = GdipCreateMatrix(&matrix);
-- 
1.8.4.1




More information about the wine-patches mailing list