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
b5f38799
Commit
b5f38799
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: Use BindToObject to load document (except for http, https and ftp protocols).
parent
e5321be5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
navigate.c
dlls/shdocvw/navigate.c
+23
-1
No files found.
dlls/shdocvw/navigate.c
View file @
b5f38799
...
...
@@ -537,15 +537,37 @@ static HRESULT http_load_hack(DocHost *This, IMoniker *mon, IBindStatusCallback
static
HRESULT
bind_to_object
(
DocHost
*
This
,
IMoniker
*
mon
,
LPCWSTR
url
,
IBindCtx
*
bindctx
,
IBindStatusCallback
*
callback
)
{
WCHAR
schema
[
30
];
DWORD
schema_len
;
HRESULT
hres
;
static
const
WCHAR
httpW
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
0
};
static
const
WCHAR
httpsW
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
's'
,
0
};
static
const
WCHAR
ftpW
[]
=
{
'f'
,
't'
,
'p'
,
0
};
IBindCtx_RegisterObjectParam
(
bindctx
,
(
LPOLESTR
)
SZ_HTML_CLIENTSITE_OBJECTPARAM
,
(
IUnknown
*
)
CLIENTSITE
(
This
));
if
(
This
->
frame
)
IOleInPlaceFrame_EnableModeless
(
This
->
frame
,
FALSE
);
hres
=
http_load_hack
(
This
,
mon
,
callback
,
bindctx
);
hres
=
CoInternetParseUrl
(
url
,
PARSE_SCHEMA
,
0
,
schema
,
sizeof
(
schema
)
/
sizeof
(
schema
[
0
]),
&
schema_len
,
0
);
if
(
SUCCEEDED
(
hres
)
&&
(
!
strcmpW
(
schema
,
httpW
)
||
!
strcmpW
(
schema
,
httpsW
)
||
!
strcmpW
(
schema
,
ftpW
)))
{
hres
=
http_load_hack
(
This
,
mon
,
callback
,
bindctx
);
}
else
{
IUnknown
*
unk
=
NULL
;
hres
=
IMoniker_BindToObject
(
mon
,
bindctx
,
NULL
,
&
IID_IUnknown
,
(
void
**
)
&
unk
);
if
(
SUCCEEDED
(
hres
))
{
hres
=
S_OK
;
if
(
unk
)
IUnknown_Release
(
unk
);
}
else
{
FIXME
(
"BindToObject failed: %08x
\n
"
,
hres
);
}
}
if
(
This
->
frame
)
IOleInPlaceFrame_EnableModeless
(
This
->
frame
,
TRUE
);
...
...
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