Commit 37654ceb authored by Fabian Maurer's avatar Fabian Maurer Committed by Alexandre Julliard

wineconsole: When loading settings for an application, respect a 0 in FontSize.

parent 7122c9d4
......@@ -126,8 +126,17 @@ static void WINECON_RegLoadHelper(HKEY hConKey, struct config_data* cfg)
count = sizeof(val);
if (!RegQueryValueExW(hConKey, wszFontSize, 0, &type, (LPBYTE)&val, &count))
{
cfg->cell_height = HIWORD(val);
cfg->cell_width = LOWORD(val);
int height = HIWORD(val);
int width = LOWORD(val);
/* A value of zero reflects the default settings */
if (height != 0)
{
cfg->cell_height = height;
}
if (width != 0)
{
cfg->cell_width = width;
}
}
count = sizeof(val);
......
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