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

This commit is contained in:
Jacek Caban 2007-09-09 20:11:32 +02:00 committed by Alexandre Julliard
parent 8bafc2b67b
commit c66843693f
1 changed files with 2 additions and 1 deletions

View File

@ -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)