Commit e6dd5d1c authored by Slava Monich's avatar Slava Monich Committed by Alexandre Julliard

Check the value returned by DIALOG_GetCharSize.

parent df5e5792
......@@ -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 );
}
......
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