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

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2016-12-09 14:17:31 +00:00 committed by Alexandre Julliard
parent 2dcfd128e1
commit 78983d9fcd
1 changed files with 6 additions and 0 deletions

View File

@ -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 );