Commit c6684369 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Call Exec in show_context_menu only if user selected menu item.

parent 8bafc2b6
......@@ -873,7 +873,8 @@ void show_context_menu(HTMLDocument *This, DWORD dwID, POINT *ppt)
ppt->x, ppt->y, 0, This->hwnd, NULL);
DestroyMenu(menu_res);
IOleCommandTarget_Exec(CMDTARGET(This), &CGID_MSHTML, cmdid, 0, NULL, NULL);
if(cmdid)
IOleCommandTarget_Exec(CMDTARGET(This), &CGID_MSHTML, cmdid, 0, NULL, NULL);
}
void HTMLDocument_OleCmd_Init(HTMLDocument *This)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment