Fixed crash issue by checking & unchecking "Disable extension column" in preferences dialog

Fix #4682, close #4684
This commit is contained in:
Rajendra Singh 2018-07-21 11:11:37 +05:30 committed by Don HO
parent 1c60f3f93e
commit 14b5e161cc

View File

@ -122,6 +122,7 @@ void VerticalFileSwitcherListView::initList()
{
// resize "Name" column when "exts" won't fit
LVCOLUMN lvc;
lvc.mask = LVCF_WIDTH;
SendMessage(_hSelf, LVM_GETCOLUMN, 0, reinterpret_cast<LPARAM>(&lvc));
if (lvc.cx + 50 > totalWidth)