[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:
Bișoc George 2019-06-14 20:52:41 +02:00 committed by Hermès Bélusca-Maïto
parent b13990bd78
commit 9ade0e7b04
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -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);