[RSHELL]
authorDavid Quintana <gigaherz@gmail.com>
Mon, 24 Feb 2014 11:20:16 +0000 (11:20 +0000)
committerDavid Quintana <gigaherz@gmail.com>
Mon, 24 Feb 2014 11:20:16 +0000 (11:20 +0000)
* Undo a test change that shouldn't have reached the commit. ;P

svn path=/branches/shell-experiments/; revision=62318

base/shell/rshell/CMenuBand.cpp

index 1acfb76..fe996ef 100644 (file)
@@ -915,7 +915,7 @@ HRESULT CMenuToolbarBase::DoContextMenu(IContextMenu* contextMenu)
 
     CMINVOKECOMMANDINFO cmi = { 0 };
     cmi.cbSize = sizeof(cmi);
-    cmi.lpVerb = reinterpret_cast<LPCSTR>(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;