Skip to content

Commit

Permalink
Update out-of-date comment
Browse files Browse the repository at this point in the history
  • Loading branch information
derceg committed Sep 13, 2024
1 parent 440abbb commit 973af4a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Explorer++/Explorer++/MenuView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ MenuView::~MenuView()
void MenuView::AppendItem(UINT id, const std::wstring &text, wil::unique_hbitmap bitmap,
const std::wstring &helpText)
{
// The call to TrackPopupMenu() below will return the ID of the item that was selected, with
// 0 being returned if the menu was canceled, or an error occurred. Therefore, 0 shouldn't
// be used as an item ID.
// The value 0 shouldn't be used as an item ID. That's because a call like TrackPopupMenu() will
// use a return value of 0 to indicate the menu was canceled, or an error occurred.
DCHECK_NE(id, 0U);

MENUITEMINFO menuItemInfo = {};
Expand Down

0 comments on commit 973af4a

Please sign in to comment.