shell32: Fix context menu creation.

This commit is contained in:
Daniel Jelinski 2013-08-10 18:53:29 +02:00 committed by Alexandre Julliard
parent fc2309b84b
commit c687b4adf4
1 changed files with 2 additions and 2 deletions

View File

@ -160,10 +160,10 @@ static HRESULT WINAPI ItemMenu_QueryContextMenu(
mi.dwTypeData = str;
mi.cch = 255;
GetMenuItemInfoW(hmenu, FCIDM_SHVIEW_EXPLORE, MF_BYCOMMAND, &mi);
RemoveMenu(hmenu, FCIDM_SHVIEW_EXPLORE, MF_BYCOMMAND);
RemoveMenu(hmenu, FCIDM_SHVIEW_EXPLORE + idCmdFirst, MF_BYCOMMAND);
mi.cbSize = sizeof(mi);
mi.fMask = MIIM_ID | MIIM_TYPE | MIIM_STATE;
mi.fMask = MIIM_ID | MIIM_TYPE | MIIM_STATE | MIIM_STRING;
mi.dwTypeData = str;
mi.fState = MFS_ENABLED;
mi.wID = FCIDM_SHVIEW_EXPLORE;