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
d44364d3
Commit
d44364d3
authored
Jan 14, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Better handling of IDocHostUIHandler in SetClientSite.
parent
068cedc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
oleobj.c
dlls/mshtml/oleobj.c
+8
-5
No files found.
dlls/mshtml/oleobj.c
View file @
d44364d3
...
@@ -73,16 +73,18 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
...
@@ -73,16 +73,18 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
if
(
pClientSite
==
This
->
client
)
if
(
pClientSite
==
This
->
client
)
return
S_OK
;
return
S_OK
;
if
(
This
->
client
)
if
(
This
->
client
)
{
IOleClientSite_Release
(
This
->
client
);
IOleClientSite_Release
(
This
->
client
);
This
->
client
=
NULL
;
}
if
(
This
->
hostui
)
if
(
This
->
hostui
)
{
IDocHostUIHandler_Release
(
This
->
hostui
);
IDocHostUIHandler_Release
(
This
->
hostui
);
This
->
hostui
=
NULL
;
}
if
(
!
pClientSite
)
{
if
(
!
pClientSite
)
This
->
client
=
NULL
;
return
S_OK
;
return
S_OK
;
}
hres
=
IOleObject_QueryInterface
(
pClientSite
,
&
IID_IDocHostUIHandler
,
(
void
**
)
&
pDocHostUIHandler
);
hres
=
IOleObject_QueryInterface
(
pClientSite
,
&
IID_IDocHostUIHandler
,
(
void
**
)
&
pDocHostUIHandler
);
if
(
SUCCEEDED
(
hres
))
{
if
(
SUCCEEDED
(
hres
))
{
...
@@ -120,6 +122,7 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
...
@@ -120,6 +122,7 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
}
}
CoTaskMemFree
(
override_key_path
);
CoTaskMemFree
(
override_key_path
);
}
}
IDocHostUIHandler2_Release
(
pDocHostUIHandler2
);
}
}
This
->
has_key_path
=
TRUE
;
This
->
has_key_path
=
TRUE
;
...
...
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