Huw Davies : user32/tests: Add a test to show that released cache DCs are disabled.
Alexandre Julliard
julliard at winehq.org
Fri Dec 9 13:37:33 CST 2016
Module: wine
Branch: master
Commit: 78983d9fcd9f9e84748df68b8ce4e4981f678e0d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=78983d9fcd9f9e84748df68b8ce4e4981f678e0d
Author: Huw Davies <huw at codeweavers.com>
Date: Fri Dec 9 14:17:31 2016 +0000
user32/tests: Add a test to show that released cache DCs are disabled.
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 );
More information about the wine-cvs
mailing list