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
98680070
Commit
98680070
authored
Jan 05, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use QueryService helper function in SetClientSite implementation.
parent
6363796e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
23 deletions
+16
-23
oleobj.c
dlls/mshtml/oleobj.c
+16
-23
No files found.
dlls/mshtml/oleobj.c
View file @
98680070
...
...
@@ -203,41 +203,34 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
OLECMD
cmd
=
{
OLECMDID_SETPROGRESSTEXT
,
0
};
if
(
!
hostui_setup
)
{
IServiceProvider
*
sp
;
IDocObjectService
*
doc_object_service
;
IBrowserService
*
browser_service
;
IWebBrowser2
*
wb
;
V_VT
(
&
var
)
=
VT_UNKNOWN
;
V_UNKNOWN
(
&
var
)
=
(
IUnknown
*
)
&
This
->
window
->
IHTMLWindow2_iface
;
IOleCommandTarget_Exec
(
cmdtrg
,
&
CGID_DocHostCmdPriv
,
DOCHOST_DOCCANNAVIGATE
,
0
,
&
var
,
NULL
);
hres
=
IOleClientSite_QueryInterface
(
pClientSite
,
&
IID_IServiceProvider
,
(
void
**
)
&
sp
);
hres
=
do_query_service
((
IUnknown
*
)
pClientSite
,
&
IID_IShellBrowser
,
&
IID_IBrowserService
,
(
void
**
)
&
browser_service
);
if
(
SUCCEEDED
(
hres
))
{
IDocObjectService
*
doc_object_service
;
IBrowserService
*
browser_service
;
IWebBrowser2
*
wb
;
hres
=
IServiceProvider_QueryService
(
sp
,
&
IID_IShellBrowser
,
&
IID_IBrowserService
,
(
void
**
)
&
browser_service
);
hres
=
IBrowserService_QueryInterface
(
browser_service
,
&
IID_IDocObjectService
,
(
void
**
)
&
doc_object_service
);
if
(
SUCCEEDED
(
hres
))
{
hres
=
IBrowserService_QueryInterface
(
browser_service
,
&
IID_IDocObjectService
,
(
void
**
)
&
doc_object_service
);
This
->
doc_obj
->
doc_object_service
=
doc_object_service
;
/*
* Some embedding routines, esp. in regards to use of IDocObjectService, differ if
* embedder supports IWebBrowserApp.
*/
hres
=
do_query_service
((
IUnknown
*
)
pClientSite
,
&
IID_IWebBrowserApp
,
&
IID_IWebBrowser2
,
(
void
**
)
&
wb
);
if
(
SUCCEEDED
(
hres
))
{
This
->
doc_obj
->
doc_object_service
=
doc_object_service
;
/*
* Some embedding routines, esp. in regards to use of IDocObjectService, differ if
* embedder supports IWebBrowserApp.
*/
hres
=
IServiceProvider_QueryService
(
sp
,
&
IID_IWebBrowserApp
,
&
IID_IWebBrowser2
,
(
void
**
)
&
wb
);
if
(
SUCCEEDED
(
hres
))
{
This
->
doc_obj
->
is_webbrowser
=
TRUE
;
IWebBrowser2_Release
(
wb
);
}
This
->
doc_obj
->
is_webbrowser
=
TRUE
;
IWebBrowser2_Release
(
wb
);
}
IBrowserService_Release
(
browser_service
);
}
IServiceProvider_Release
(
sp
);
}
}
...
...
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