[Bug 44976] ConEmu-Maximus5 Windows console emulator causes crash of builtin ' wineconsole.exe' (division by zero)
wine-bugs at winehq.org
wine-bugs at winehq.org
Sun Apr 15 09:28:57 CDT 2018
https://bugs.winehq.org/show_bug.cgi?id=44976
Fabian Maurer <dark.shadow4 at web.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dark.shadow4 at web.de
--- Comment #1 from Fabian Maurer <dark.shadow4 at web.de> ---
The program creates a config under HKEY_CURRENT_USER/Console, setting FontSize
to 0x50000. Wine reads that setting wrong.
wineconsole/registry.c
> count = sizeof(val);
> if (!RegQueryValueExW(hConKey, wszFontSize, 0, &type, (LPBYTE)&val, &count))
> {
> cfg->cell_height = HIWORD(val);
> cfg->cell_width = LOWORD(val);
> }
cell_width end up being zero, and Wine take it as that. But that's not what's
supposed to happen, and it later divides by zero.
MSDN Page relevant to this issue:
https://technet.microsoft.com/en-us/library/cc978575.aspx
> A value of 0x0 is not a null value, but reflects the default window settings.
I'll send in a test and a fix later.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list