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
f427951d
Commit
f427951d
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: Call try_application_url after BindToObject failure.
parent
b5f38799
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
navigate.c
dlls/shdocvw/navigate.c
+3
-11
No files found.
dlls/shdocvw/navigate.c
View file @
f427951d
...
...
@@ -461,6 +461,7 @@ static void on_before_navigate2(DocHost *This, LPCWSTR url, const BYTE *post_dat
SafeArrayDestroy
(
V_ARRAY
(
&
var_post_data
));
}
/* FIXME: urlmon should handle it */
static
BOOL
try_application_url
(
LPCWSTR
url
)
{
SHELLEXECUTEINFOW
exec_info
;
...
...
@@ -564,6 +565,8 @@ static HRESULT bind_to_object(DocHost *This, IMoniker *mon, LPCWSTR url, IBindCt
hres
=
S_OK
;
if
(
unk
)
IUnknown_Release
(
unk
);
}
else
if
(
try_application_url
(
This
->
url
))
{
hres
=
S_OK
;
}
else
{
FIXME
(
"BindToObject failed: %08x
\n
"
,
hres
);
}
...
...
@@ -666,7 +669,6 @@ static HRESULT navigate_hlink(DocHost *This, IMoniker *mon, IBindCtx *bindctx,
IBindStatusCallback
*
callback
)
{
IHttpNegotiate
*
http_negotiate
;
LPWSTR
url
=
NULL
;
PBYTE
post_data
=
NULL
;
ULONG
post_data_len
=
0
;
LPWSTR
headers
=
NULL
;
...
...
@@ -674,9 +676,6 @@ static HRESULT navigate_hlink(DocHost *This, IMoniker *mon, IBindCtx *bindctx,
DWORD
bindf
=
0
;
HRESULT
hres
;
IMoniker_GetDisplayName
(
mon
,
NULL
,
NULL
,
&
url
);
TRACE
(
"navigating to %s
\n
"
,
debugstr_w
(
url
));
hres
=
IBindStatusCallback_QueryInterface
(
callback
,
&
IID_IHttpNegotiate
,
(
void
**
)
&
http_negotiate
);
if
(
SUCCEEDED
(
hres
))
{
...
...
@@ -698,15 +697,8 @@ static HRESULT navigate_hlink(DocHost *This, IMoniker *mon, IBindCtx *bindctx,
post_data
=
bindinfo
.
stgmedData
.
u
.
hGlobal
;
}
/* 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