mshtml: Do not try to use IDocHostUIHandler for context menu if hostui is NULL.
This commit is contained in:
parent
bcb869a342
commit
fa49b9f226
|
@ -898,11 +898,9 @@ void show_context_menu(HTMLDocumentObj *This, DWORD dwID, POINT *ppt, IDispatch
|
||||||
{
|
{
|
||||||
HMENU menu_res, menu;
|
HMENU menu_res, menu;
|
||||||
DWORD cmdid;
|
DWORD cmdid;
|
||||||
HRESULT hres;
|
|
||||||
|
|
||||||
hres = IDocHostUIHandler_ShowContextMenu(This->hostui, dwID, ppt,
|
if(This->hostui && S_OK == IDocHostUIHandler_ShowContextMenu(This->hostui,
|
||||||
(IUnknown*)CMDTARGET(&This->basedoc), elem);
|
dwID, ppt, (IUnknown*)CMDTARGET(&This->basedoc), elem))
|
||||||
if(hres == S_OK)
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
menu_res = LoadMenuW(get_shdoclc(), MAKEINTRESOURCEW(IDR_BROWSE_CONTEXT_MENU));
|
menu_res = LoadMenuW(get_shdoclc(), MAKEINTRESOURCEW(IDR_BROWSE_CONTEXT_MENU));
|
||||||
|
|
Loading…
Reference in New Issue