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
42c1b393
Commit
42c1b393
authored
Sep 18, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Moved Exec(DOCHOST_DOCCANNAVIGATE) call to separated function.
parent
f8463f28
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
oleobj.c
dlls/mshtml/oleobj.c
+17
-3
No files found.
dlls/mshtml/oleobj.c
View file @
42c1b393
...
...
@@ -210,6 +210,22 @@ void call_docview_84(HTMLDocumentObj *doc)
FIXME
(
"handle result
\n
"
);
}
static
void
set_document_navigation
(
HTMLDocumentObj
*
doc
,
BOOL
doc_can_navigate
)
{
VARIANT
var
;
if
(
!
doc
->
client_cmdtrg
)
return
;
if
(
doc_can_navigate
)
{
V_VT
(
&
var
)
=
VT_UNKNOWN
;
V_UNKNOWN
(
&
var
)
=
(
IUnknown
*
)
&
doc
->
basedoc
.
window
->
base
.
IHTMLWindow2_iface
;
}
IOleCommandTarget_Exec
(
doc
->
client_cmdtrg
,
&
CGID_DocHostCmdPriv
,
DOCHOST_DOCCANNAVIGATE
,
0
,
doc_can_navigate
?
&
var
:
NULL
,
NULL
);
}
static
HRESULT
WINAPI
OleObject_SetClientSite
(
IOleObject
*
iface
,
IOleClientSite
*
pClientSite
)
{
HTMLDocument
*
This
=
impl_from_IOleObject
(
iface
);
...
...
@@ -359,9 +375,7 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
IDocObjectService
*
doc_object_service
;
IWebBrowser2
*
wb
;
V_VT
(
&
var
)
=
VT_UNKNOWN
;
V_UNKNOWN
(
&
var
)
=
(
IUnknown
*
)
&
This
->
window
->
base
.
IHTMLWindow2_iface
;
IOleCommandTarget_Exec
(
cmdtrg
,
&
CGID_DocHostCmdPriv
,
DOCHOST_DOCCANNAVIGATE
,
0
,
&
var
,
NULL
);
set_document_navigation
(
This
->
doc_obj
,
TRUE
);
if
(
browser_service
)
{
hres
=
IBrowserService_QueryInterface
(
browser_service
,
...
...
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