Commit 1fa15f3d authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Make sure the system params DC cannot be deleted.

parent a4644f12
......@@ -710,7 +710,11 @@ static inline HDC get_display_dc(void)
{
static const WCHAR DISPLAY[] = {'D','I','S','P','L','A','Y',0};
static HDC display_dc;
if (!display_dc) display_dc = CreateICW( DISPLAY, NULL, NULL, NULL );
if (!display_dc)
{
display_dc = CreateICW( DISPLAY, NULL, NULL, NULL );
__wine_make_gdi_object_system( display_dc, TRUE );
}
return display_dc;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment