Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
28461117
Commit
28461117
authored
Aug 18, 2023
by
James Beddek
Committed by
Alexandre Julliard
Aug 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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@posteo.de
>
parent
3ff81e3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
npplugin.c
dlls/mshtml/npplugin.c
+2
-1
No files found.
dlls/mshtml/npplugin.c
View file @
28461117
...
@@ -301,7 +301,8 @@ static NPError CDECL NPP_New(NPMIMEType pluginType, NPP instance, UINT16 mode, I
...
@@ -301,7 +301,8 @@ static NPError CDECL NPP_New(NPMIMEType pluginType, NPP instance, UINT16 mode, I
}
}
instance
->
pdata
=
container
->
plugin_host
;
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
);
node_release
(
&
container
->
element
.
node
);
return
err
;
return
err
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment