From: Giannis Adamopoulos Date: Tue, 15 Aug 2017 23:02:45 +0000 (+0000) Subject: [SHLWAPI] -Addendum to 75533. Pass the id offset to IContextMenu::InvokeCommand.... X-Git-Tag: backups/GSoC_2017/rapps@75905~4^2~156 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=40b5e9f4f8560fee9f7f767b6d5d7caa869f6dd0 [SHLWAPI] -Addendum to 75533. Pass the id offset to IContextMenu::InvokeCommand. Fixes launching applications from the start menu. CORE-13680 svn path=/trunk/; revision=75561 --- diff --git a/reactos/dll/win32/shlwapi/ordinal.c b/reactos/dll/win32/shlwapi/ordinal.c index dea6ba17cfb..a6c67a9e726 100644 --- a/reactos/dll/win32/shlwapi/ordinal.c +++ b/reactos/dll/win32/shlwapi/ordinal.c @@ -3501,7 +3501,7 @@ HRESULT WINAPI SHInvokeCommand(HWND hWnd, IShellFolder* lpFolder, LPCITEMIDLIST cmIci.cbSize = sizeof(cmIci); cmIci.fMask = CMIC_MASK_ASYNCOK; cmIci.hwnd = hWnd; - cmIci.lpVerb = MAKEINTRESOURCEA(dwCommandId); + cmIci.lpVerb = MAKEINTRESOURCEA(dwCommandId - 1); cmIci.nShow = SW_SHOWNORMAL; hRet = IContextMenu_InvokeCommand(iContext, &cmIci);