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
e5321be5
Commit
e5321be5
authored
Jan 03, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw.5: Move on_before_navigate2 call to navigate_mon.
parent
cc8ed9a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
15 deletions
+20
-15
navigate.c
dlls/shdocvw/navigate.c
+20
-15
No files found.
dlls/shdocvw/navigate.c
View file @
e5321be5
...
...
@@ -558,13 +558,24 @@ static HRESULT navigate_mon(DocHost *This, IMoniker *mon, PBYTE post_data, ULONG
{
IBindStatusCallback
*
callback
;
IBindCtx
*
bindctx
;
VARIANT_BOOL
cancel
=
VARIANT_FALSE
;
LPWSTR
url
;
HRESULT
hres
;
IMoniker_GetDisplayName
(
mon
,
NULL
,
NULL
,
&
This
->
url
);
TRACE
(
"navigating to %s
\n
"
,
debugstr_w
(
This
->
url
));
IMoniker_GetDisplayName
(
mon
,
NULL
,
NULL
,
&
url
);
TRACE
(
"navigating to %s
\n
"
,
debugstr_w
(
url
));
on_before_navigate2
(
This
,
url
,
post_data
,
post_data_len
,
headers
,
&
cancel
);
if
(
cancel
)
{
FIXME
(
"Navigation canceled
\n
"
);
CoTaskMemFree
(
url
);
return
S_OK
;
}
if
(
This
->
document
)
deactivate_document
(
This
);
CoTaskMemFree
(
This
->
url
);
This
->
url
=
url
;
callback
=
create_callback
(
This
,
post_data
,
post_data_len
,
(
LPWSTR
)
headers
);
CreateAsyncBindCtx
(
0
,
callback
,
0
,
&
bindctx
);
...
...
@@ -637,7 +648,6 @@ static HRESULT navigate_hlink(DocHost *This, IMoniker *mon, IBindCtx *bindctx,
PBYTE
post_data
=
NULL
;
ULONG
post_data_len
=
0
;
LPWSTR
headers
=
NULL
;
VARIANT_BOOL
cancel
=
VARIANT_FALSE
;
BINDINFO
bindinfo
;
DWORD
bindf
=
0
;
HRESULT
hres
;
...
...
@@ -666,20 +676,15 @@ static HRESULT navigate_hlink(DocHost *This, IMoniker *mon, IBindCtx *bindctx,
post_data
=
bindinfo
.
stgmedData
.
u
.
hGlobal
;
}
on_before_navigate2
(
This
,
url
,
post_data
,
post_data_len
,
headers
,
&
cancel
);
CoTaskMemFree
(
url
);
if
(
cancel
)
{
FIXME
(
"navigation canceled
\n
"
);
hres
=
S_OK
;
}
else
{
/* FIXME: We should do it after BindToObject call */
if
(
try_application_url
(
url
))
return
S_OK
;
hres
=
navigate_mon
(
This
,
mon
,
post_data
,
post_data_len
,
headers
);
/* FIXME: We should do it after BindToObject call */
if
(
try_application_url
(
url
))
{
CoTaskMemFree
(
url
);
return
S_OK
;
}
hres
=
navigate_mon
(
This
,
mon
,
post_data
,
post_data_len
,
headers
);
CoTaskMemFree
(
url
);
CoTaskMemFree
(
headers
);
ReleaseBindInfo
(
&
bindinfo
);
...
...
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