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
54faf085
Commit
54faf085
authored
Nov 12, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Moved QueryService(IID_IShellBrowser) call to the right place.
parent
dc604f4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
oleobj.c
dlls/mshtml/oleobj.c
+20
-20
No files found.
dlls/mshtml/oleobj.c
View file @
54faf085
...
...
@@ -98,7 +98,6 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
HTMLDocument
*
This
=
impl_from_IOleObject
(
iface
);
IOleCommandTarget
*
cmdtrg
=
NULL
;
IOleWindow
*
ole_window
;
IServiceProvider
*
sp
;
BOOL
hostui_setup
;
VARIANT
silent
;
HWND
hwnd
;
...
...
@@ -133,25 +132,6 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
IOleClientSite_AddRef
(
pClientSite
);
This
->
doc_obj
->
client
=
pClientSite
;
hres
=
IOleClientSite_QueryInterface
(
pClientSite
,
&
IID_IServiceProvider
,
(
void
**
)
&
sp
);
if
(
SUCCEEDED
(
hres
))
{
IBrowserService
*
browser_service
;
IDocObjectService
*
doc_object_service
;
hres
=
IServiceProvider_QueryService
(
sp
,
&
IID_IShellBrowser
,
&
IID_IBrowserService
,
(
void
**
)
&
browser_service
);
if
(
SUCCEEDED
(
hres
))
{
hres
=
IBrowserService_QueryInterface
(
browser_service
,
&
IID_IDocObjectService
,
(
void
**
)
&
doc_object_service
);
if
(
SUCCEEDED
(
hres
))
This
->
doc_obj
->
doc_object_service
=
doc_object_service
;
IBrowserService_Release
(
browser_service
);
}
IServiceProvider_Release
(
sp
);
}
hostui_setup
=
This
->
doc_obj
->
hostui_setup
;
if
(
!
This
->
doc_obj
->
hostui
)
{
...
...
@@ -222,9 +202,29 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
OLECMD
cmd
=
{
OLECMDID_SETPROGRESSTEXT
,
0
};
if
(
!
hostui_setup
)
{
IServiceProvider
*
sp
;
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
);
if
(
SUCCEEDED
(
hres
))
{
IDocObjectService
*
doc_object_service
;
IBrowserService
*
browser_service
;
hres
=
IServiceProvider_QueryService
(
sp
,
&
IID_IShellBrowser
,
&
IID_IBrowserService
,
(
void
**
)
&
browser_service
);
if
(
SUCCEEDED
(
hres
))
{
hres
=
IBrowserService_QueryInterface
(
browser_service
,
&
IID_IDocObjectService
,
(
void
**
)
&
doc_object_service
);
if
(
SUCCEEDED
(
hres
))
This
->
doc_obj
->
doc_object_service
=
doc_object_service
;
IBrowserService_Release
(
browser_service
);
}
IServiceProvider_Release
(
sp
);
}
}
IOleCommandTarget_QueryStatus
(
cmdtrg
,
NULL
,
1
,
&
cmd
,
NULL
);
...
...
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