mshtml: Call Exec in show_context_menu only if user selected menu item.
This commit is contained in:
parent
8bafc2b67b
commit
c66843693f
|
@ -873,6 +873,7 @@ void show_context_menu(HTMLDocument *This, DWORD dwID, POINT *ppt)
|
||||||
ppt->x, ppt->y, 0, This->hwnd, NULL);
|
ppt->x, ppt->y, 0, This->hwnd, NULL);
|
||||||
DestroyMenu(menu_res);
|
DestroyMenu(menu_res);
|
||||||
|
|
||||||
|
if(cmdid)
|
||||||
IOleCommandTarget_Exec(CMDTARGET(This), &CGID_MSHTML, cmdid, 0, NULL, NULL);
|
IOleCommandTarget_Exec(CMDTARGET(This), &CGID_MSHTML, cmdid, 0, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue