Aric Stewart : mshtml: Handle NULL aNode in nsContextMenuListener_OnShowContextMenu.

Alexandre Julliard julliard at winehq.org
Fri May 31 15:53:31 CDT 2019


Module: wine
Branch: master
Commit: 307f163f447d46c281c50100b900344f8d16f9db
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=307f163f447d46c281c50100b900344f8d16f9db

Author: Aric Stewart <aric at codeweavers.com>
Date:   Fri May 31 09:53:48 2019 -0500

mshtml: Handle NULL aNode in nsContextMenuListener_OnShowContextMenu.

Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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;




More information about the wine-cvs mailing list