user32/tests: Add a test to show that released cache DCs are disabled.

Huw Davies huw at codeweavers.com
Fri Dec 9 08:17:31 CST 2016


Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 dlls/user32/tests/dce.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dlls/user32/tests/dce.c b/dlls/user32/tests/dce.c
index 6ba234e..b5f9722 100644
--- a/dlls/user32/tests/dce.c
+++ b/dlls/user32/tests/dce.c
@@ -110,6 +110,12 @@ static void test_dc_attributes(void)
     }
     while (i > 0) ReleaseDC( hwnd_cache, hdcs[--i] );
 
+    /* Released cache DCs are 'disabled' */
+    rop = SetROP2( old_hdc, R2_BLACK );
+    todo_wine ok( rop == 0, "got %d\n", rop );
+    rop = GetROP2( old_hdc );
+    todo_wine ok( rop == 0, "got %d\n", rop );
+
     /* test own DC */
 
     hdc = GetDC( hwnd_owndc );
-- 
2.10.2




More information about the wine-patches mailing list