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
0b48542f
Commit
0b48542f
authored
Mar 09, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Always set hostui to NULL in SetClientsite.
parent
355b3c19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
oleobject.c
dlls/shdocvw/oleobject.c
+8
-7
No files found.
dlls/shdocvw/oleobject.c
View file @
0b48542f
...
...
@@ -289,25 +289,26 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, LPOLECLIENTSITE
This
->
inplace
=
NULL
;
}
if
(
This
->
doc_host
.
hostui
)
if
(
This
->
doc_host
.
hostui
)
{
IDocHostUIHandler_Release
(
This
->
doc_host
.
hostui
);
This
->
doc_host
.
hostui
=
NULL
;
}
if
(
This
->
client
)
IOleClientSite_Release
(
This
->
client
);
This
->
client
=
pClientSite
;
if
(
!
pClientSite
)
{
if
(
This
->
doc_host
.
document
)
deactivate_document
(
&
This
->
doc_host
);
This
->
client
=
NULL
;
return
S_OK
;
}
This
->
client
=
pClientSite
;
IOleClientSite_AddRef
(
pClientSite
);
hres
=
IOleClientSite_QueryInterface
(
This
->
client
,
&
IID_IDocHostUIHandler
,
(
void
**
)
&
This
->
doc_host
.
hostui
);
if
(
FAILED
(
hres
))
This
->
doc_host
.
hostui
=
NULL
;
IOleClientSite_QueryInterface
(
This
->
client
,
&
IID_IDocHostUIHandler
,
(
void
**
)
&
This
->
doc_host
.
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