mirror of
https://github.com/reactos/reactos.git
synced 2024-11-25 12:33:34 +08:00
[MAGNIFY] Fix a string buffer misuage that led to division by zero exception. (#1655)
The iZoom variable was wrongly initialized to zero because the _ttoi() called failed due to the fact the temporary string buffer was too small.
This commit is contained in:
parent
b13990bd78
commit
9ade0e7b04
@ -931,7 +931,7 @@ INT_PTR CALLBACK OptionsProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lPar
|
||||
if (HIWORD(wParam) == CBN_SELCHANGE)
|
||||
{
|
||||
HWND hCombo = GetDlgItem(hDlg,IDC_ZOOM);
|
||||
LPCTSTR currentZoomValue = TEXT("");
|
||||
TCHAR currentZoomValue[2] = TEXT("");
|
||||
|
||||
/* Get index of current selection and the text of that selection */
|
||||
int currentSelectionIndex = ComboBox_GetCurSel(hCombo);
|
||||
|
Loading…
Reference in New Issue
Block a user