mshtml: Handle NULL aNode in nsContextMenuListener_OnShowContextMenu.
Signed-off-by: Aric Stewart <aric@codeweavers.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
984d586d57
commit
307f163f44
|
@ -1601,6 +1601,9 @@ static nsresult NSAPI nsContextMenuListener_OnShowContextMenu(nsIContextMenuList
|
||||||
|
|
||||||
TRACE("(%p)->(%08x %p %p)\n", This, aContextFlags, aEvent, aNode);
|
TRACE("(%p)->(%08x %p %p)\n", This, aContextFlags, aEvent, aNode);
|
||||||
|
|
||||||
|
if (!aNode)
|
||||||
|
return NS_ERROR_FAILURE;
|
||||||
|
|
||||||
hres = get_node(aNode, TRUE, &node);
|
hres = get_node(aNode, TRUE, &node);
|
||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
|
|
Loading…
Reference in New Issue