Skip to content

Commit

Permalink
fix: invalid quick return
Browse files Browse the repository at this point in the history
  • Loading branch information
amorphobia committed Sep 30, 2024
1 parent 02fdffe commit 6001934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WeaselDeployer/SwitcherSettingsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ LRESULT SwitcherSettingsDialog::OnOK(WORD, WORD code, HWND, BOOL&) {
LRESULT SwitcherSettingsDialog::OnSchemaListItemChanged(int, LPNMHDR p, BOOL&) {
LPNMLISTVIEW lv = reinterpret_cast<LPNMLISTVIEW>(p);
if (!loaded_ || !lv ||
lv->iItem < 0 && lv->iItem >= schema_list_.GetItemCount())
lv->iItem < 0 || lv->iItem >= schema_list_.GetItemCount())
return 0;
if ((lv->uNewState & LVIS_STATEIMAGEMASK) !=
(lv->uOldState & LVIS_STATEIMAGEMASK)) {
Expand Down

0 comments on commit 6001934

Please sign in to comment.