Display an ERR on errors while initializing USER.

This commit is contained in:
Dmitry Timoshkov 2000-10-31 01:01:41 +00:00 committed by Alexandre Julliard
parent 8fa528aa3f
commit 75b25be6ee

View file

@ -207,8 +207,19 @@ BOOL DIALOG_Init(void)
/* Calculate the dialog base units */
if (!(hdc = CreateDCA( "DISPLAY", NULL, NULL, NULL ))) return FALSE;
if (!DIALOG_GetCharSizeFromDC( hdc, 0, &size )) return FALSE;
if (!(hdc = CreateDCA( "DISPLAY", NULL, NULL, NULL )))
{
ERR("Could not create Display DC\n");
return FALSE;
}
if (!DIALOG_GetCharSizeFromDC( hdc, 0, &size ))
{
DeleteDC( hdc );
ERR("Could not initialize base dialog units\n");
return FALSE;
}
DeleteDC( hdc );
xBaseUnit = size.cx;
yBaseUnit = size.cy;