Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
60b096f6
Commit
60b096f6
authored
Nov 17, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Check QueryInterface return codes before using its result.
parent
96073d51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
oleobject.c
dlls/shdocvw/oleobject.c
+10
-4
No files found.
dlls/shdocvw/oleobject.c
View file @
60b096f6
...
...
@@ -282,7 +282,9 @@ static ULONG WINAPI OleObject_Release(IOleObject *iface)
static
HRESULT
WINAPI
OleObject_SetClientSite
(
IOleObject
*
iface
,
LPOLECLIENTSITE
pClientSite
)
{
WebBrowser
*
This
=
OLEOBJ_THIS
(
iface
);
IDocHostUIHandler
*
hostui
;
IOleContainer
*
container
;
IDispatch
*
disp
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pClientSite
);
...
...
@@ -322,11 +324,15 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, LPOLECLIENTSITE
IOleClientSite_AddRef
(
pClientSite
);
IOleClientSite_QueryInterface
(
This
->
client
,
&
IID_IDispatch
,
(
void
**
)
&
This
->
doc_host
.
client_disp
);
hres
=
IOleClientSite_QueryInterface
(
This
->
client
,
&
IID_IDispatch
,
(
void
**
)
&
disp
);
if
(
SUCCEEDED
(
hres
))
This
->
doc_host
.
client_disp
=
disp
;
IOleClientSite_QueryInterface
(
This
->
client
,
&
IID_IDocHostUIHandler
,
(
void
**
)
&
This
->
doc_host
.
hostui
);
hres
=
IOleClientSite_QueryInterface
(
This
->
client
,
&
IID_IDocHostUIHandler
,
(
void
**
)
&
hostui
);
if
(
SUCCEEDED
(
hres
))
This
->
doc_host
.
hostui
=
hostui
;
hres
=
IOleClientSite_GetContainer
(
This
->
client
,
&
container
);
if
(
SUCCEEDED
(
hres
))
{
...
...
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