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>
stable
Aric Stewart 2019-05-31 09:53:48 -05:00 committed by Alexandre Julliard
parent 984d586d57
commit 307f163f44
1 changed files with 3 additions and 0 deletions

View File

@ -1601,6 +1601,9 @@ static nsresult NSAPI nsContextMenuListener_OnShowContextMenu(nsIContextMenuList
TRACE("(%p)->(%08x %p %p)\n", This, aContextFlags, aEvent, aNode);
if (!aNode)
return NS_ERROR_FAILURE;
hres = get_node(aNode, TRUE, &node);
if(FAILED(hres))
return NS_ERROR_FAILURE;