James Beddek : mshtml: Check for non-NULL plugin host before trying to hold ref.
Module: wine Branch: master Commit: 2846111765350def595de6e9d54bc33d250e808b URL: https://gitlab.winehq.org/wine/wine/-/commit/2846111765350def595de6e9d54bc33... Author: James Beddek <telans(a)posteo.de> Date: Fri Aug 18 22:40:33 2023 +1200 mshtml: Check for non-NULL plugin host before trying to hold ref. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55457 Signed-off-by: James Beddek <telans(a)posteo.de> --- dlls/mshtml/npplugin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/mshtml/npplugin.c b/dlls/mshtml/npplugin.c index 6dfb65c0a6e..309e4e0e04e 100644 --- a/dlls/mshtml/npplugin.c +++ b/dlls/mshtml/npplugin.c @@ -301,7 +301,8 @@ static NPError CDECL NPP_New(NPMIMEType pluginType, NPP instance, UINT16 mode, I } instance->pdata = container->plugin_host; - IOleClientSite_AddRef(&container->plugin_host->IOleClientSite_iface); + if(container->plugin_host) + IOleClientSite_AddRef(&container->plugin_host->IOleClientSite_iface); node_release(&container->element.node); return err;
participants (1)
-
Alexandre Julliard