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