Initialize iCol with zero. Uninitialized is random at debug and negative numbers fail to insert column.

This commit is contained in:
ts-korhonen
2021-04-21 12:26:06 +03:00
parent b0870d5055
commit 4bf73d8148

View File

@@ -5060,7 +5060,7 @@ static BOOL
win_settings_categories_init_columns(HWND hdlg)
{
LVCOLUMN lvc;
int iCol;
int iCol = 0;
HWND hwndList = GetDlgItem(hdlg, IDC_SETTINGSCATLIST);
lvc.mask = LVCF_FMT | LVCF_WIDTH | LVCF_TEXT | LVCF_SUBITEM;