Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6363796e
Commit
6363796e
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 a helper function for QueryService calls in hlink_frame_navigate.
parent
a0f04767
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
8 deletions
+17
-8
main.c
dlls/mshtml/main.c
+14
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
navigate.c
dlls/mshtml/navigate.c
+1
-8
No files found.
dlls/mshtml/main.c
View file @
6363796e
...
@@ -125,6 +125,20 @@ void set_statustext(HTMLDocumentObj* doc, INT id, LPCWSTR arg)
...
@@ -125,6 +125,20 @@ void set_statustext(HTMLDocumentObj* doc, INT id, LPCWSTR arg)
heap_free
(
p
);
heap_free
(
p
);
}
}
HRESULT
do_query_service
(
IUnknown
*
unk
,
REFGUID
guid_service
,
REFIID
riid
,
void
**
ppv
)
{
IServiceProvider
*
sp
;
HRESULT
hres
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IServiceProvider
,
(
void
**
)
&
sp
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
IServiceProvider_QueryService
(
sp
,
guid_service
,
riid
,
ppv
);
IServiceProvider_Release
(
sp
);
return
hres
;
}
HINSTANCE
get_shdoclc
(
void
)
HINSTANCE
get_shdoclc
(
void
)
{
{
static
const
WCHAR
wszShdoclc
[]
=
static
const
WCHAR
wszShdoclc
[]
=
...
...
dlls/mshtml/mshtml_private.h
View file @
6363796e
...
@@ -828,6 +828,8 @@ void do_ns_command(HTMLDocument*,const char*,nsICommandParams*) DECLSPEC_HIDDEN;
...
@@ -828,6 +828,8 @@ void do_ns_command(HTMLDocument*,const char*,nsICommandParams*) DECLSPEC_HIDDEN;
void
update_doc
(
HTMLDocument
*
,
DWORD
)
DECLSPEC_HIDDEN
;
void
update_doc
(
HTMLDocument
*
,
DWORD
)
DECLSPEC_HIDDEN
;
void
update_title
(
HTMLDocumentObj
*
)
DECLSPEC_HIDDEN
;
void
update_title
(
HTMLDocumentObj
*
)
DECLSPEC_HIDDEN
;
HRESULT
do_query_service
(
IUnknown
*
,
REFGUID
,
REFIID
,
void
**
)
DECLSPEC_HIDDEN
;
/* editor */
/* editor */
void
init_editor
(
HTMLDocument
*
)
DECLSPEC_HIDDEN
;
void
init_editor
(
HTMLDocument
*
)
DECLSPEC_HIDDEN
;
void
handle_edit_event
(
HTMLDocument
*
,
nsIDOMEvent
*
)
DECLSPEC_HIDDEN
;
void
handle_edit_event
(
HTMLDocument
*
,
nsIDOMEvent
*
)
DECLSPEC_HIDDEN
;
...
...
dlls/mshtml/navigate.c
View file @
6363796e
...
@@ -1981,7 +1981,6 @@ HRESULT hlink_frame_navigate(HTMLDocument *doc, LPCWSTR url, nsChannel *nschanne
...
@@ -1981,7 +1981,6 @@ HRESULT hlink_frame_navigate(HTMLDocument *doc, LPCWSTR url, nsChannel *nschanne
{
{
IHlinkFrame
*
hlink_frame
;
IHlinkFrame
*
hlink_frame
;
nsChannelBSC
*
callback
;
nsChannelBSC
*
callback
;
IServiceProvider
*
sp
;
IBindCtx
*
bindctx
;
IBindCtx
*
bindctx
;
IMoniker
*
mon
;
IMoniker
*
mon
;
IHlink
*
hlink
;
IHlink
*
hlink
;
...
@@ -1989,14 +1988,8 @@ HRESULT hlink_frame_navigate(HTMLDocument *doc, LPCWSTR url, nsChannel *nschanne
...
@@ -1989,14 +1988,8 @@ HRESULT hlink_frame_navigate(HTMLDocument *doc, LPCWSTR url, nsChannel *nschanne
*
cancel
=
FALSE
;
*
cancel
=
FALSE
;
hres
=
IOleClientSite_QueryInterface
(
doc
->
doc_obj
->
client
,
&
IID_IServiceProvider
,
hres
=
do_query_service
((
IUnknown
*
)
doc
->
doc_obj
->
client
,
&
IID_IHlinkFrame
,
&
IID_IHlinkFrame
,
(
void
**
)
&
sp
);
if
(
FAILED
(
hres
))
return
S_OK
;
hres
=
IServiceProvider_QueryService
(
sp
,
&
IID_IHlinkFrame
,
&
IID_IHlinkFrame
,
(
void
**
)
&
hlink_frame
);
(
void
**
)
&
hlink_frame
);
IServiceProvider_Release
(
sp
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
return
S_OK
;
return
S_OK
;
...
...
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