From 78983d9fcd9f9e84748df68b8ce4e4981f678e0d Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Fri, 9 Dec 2016 14:17:31 +0000 Subject: [PATCH] user32/tests: Add a test to show that released cache DCs are disabled. Signed-off-by: Huw Davies Signed-off-by: Alexandre Julliard --- 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 6ba234e2fe9..b5f972212c3 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 );