Module: wine Branch: master Commit: 307f163f447d46c281c50100b900344f8d16f9db URL: https://source.winehq.org/git/wine.git/?a=commit;h=307f163f447d46c281c50100b...
Author: Aric Stewart aric@codeweavers.com Date: Fri May 31 09:53:48 2019 -0500
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
---
dlls/mshtml/nsembed.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/mshtml/nsembed.c b/dlls/mshtml/nsembed.c index 702bc9b..6215500 100644 --- a/dlls/mshtml/nsembed.c +++ b/dlls/mshtml/nsembed.c @@ -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;