summaryrefslogtreecommitdiff
path: root/plugins/Clist_nicer/src/viewmodes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Clist_nicer/src/viewmodes.cpp')
-rw-r--r--plugins/Clist_nicer/src/viewmodes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Clist_nicer/src/viewmodes.cpp b/plugins/Clist_nicer/src/viewmodes.cpp
index 23a5e5326f..b5908f5c6a 100644
--- a/plugins/Clist_nicer/src/viewmodes.cpp
+++ b/plugins/Clist_nicer/src/viewmodes.cpp
@@ -972,8 +972,8 @@ LRESULT CALLBACK ViewModeFrameWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
mii.fMask = MIIM_STRING;
mii.dwTypeData = szTemp;
mii.cch = 256;
- GetMenuItemInfoA(hViewModeMenu, selection, FALSE, &mii);
- ApplyViewMode(szTemp);
+ if(GetMenuItemInfoA(hViewModeMenu, selection, FALSE, &mii))
+ ApplyViewMode(szTemp);
}
break;
}