diff --git a/base/shell/rshell/CMenuBand.cpp b/base/shell/rshell/CMenuBand.cpp index 1acfb76743b..fe996ef96e0 100644 --- a/base/shell/rshell/CMenuBand.cpp +++ b/base/shell/rshell/CMenuBand.cpp @@ -915,7 +915,7 @@ HRESULT CMenuToolbarBase::DoContextMenu(IContextMenu* contextMenu) CMINVOKECOMMANDINFO cmi = { 0 }; cmi.cbSize = sizeof(cmi); - cmi.lpVerb = reinterpret_cast(uCommand); + cmi.lpVerb = MAKEINTRESOURCEA(uCommand); cmi.hwnd = m_hwnd; hr = contextMenu->InvokeCommand(&cmi); @@ -935,7 +935,6 @@ HRESULT CMenuToolbarBase::OnCommand(WPARAM wParam, LPARAM lParam, LRESULT *theRe return m_menuBand->_MenuItemHotTrack(MPOS_EXECUTE); } - HRESULT CMenuToolbarBase::ChangeHotItem(DWORD dwSelectType) { int prev = m_hotItem;