Check the value returned by DIALOG_GetCharSize.

This commit is contained in:
Slava Monich 2000-07-08 18:27:24 +00:00 committed by Alexandre Julliard
parent df5e579254
commit e6dd5d1cad
1 changed files with 5 additions and 3 deletions

View File

@ -688,9 +688,11 @@ HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCSTR dlgTemplate,
if (hFont)
{
SIZE charSize;
DIALOG_GetCharSize(hFont,&charSize);
xUnit = charSize.cx;
yUnit = charSize.cy;
if (DIALOG_GetCharSize(hFont,&charSize))
{
xUnit = charSize.cx;
yUnit = charSize.cy;
}
}
TRACE("units = %d,%d\n", xUnit, yUnit );
}