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

This commit is contained in:
Alexandre Julliard 2009-05-05 15:36:44 +02:00
parent a4644f126b
commit 1fa15f3d2f
1 changed files with 5 additions and 1 deletions

View File

@ -710,7 +710,11 @@ static inline HDC get_display_dc(void)
{ {
static const WCHAR DISPLAY[] = {'D','I','S','P','L','A','Y',0}; static const WCHAR DISPLAY[] = {'D','I','S','P','L','A','Y',0};
static HDC display_dc; 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; return display_dc;
} }