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
1876f46b
Commit
1876f46b
authored
Jan 12, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Use pluggable protocol handler for https binding.
parent
d4ce90e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
31 deletions
+1
-31
umon.c
dlls/urlmon/umon.c
+1
-31
No files found.
dlls/urlmon/umon.c
View file @
1876f46b
...
...
@@ -532,7 +532,6 @@ static HRESULT URLMonikerImpl_BindToStorage_hack(LPCWSTR URLName, IBindCtx* pbc,
if
(
SUCCEEDED
(
hres
))
{
URL_COMPONENTSW
url
;
WCHAR
*
host
,
*
path
,
*
user
,
*
pass
;
DWORD
lensz
=
sizeof
(
bind
->
expected_size
);
DWORD
dwService
=
0
;
BOOL
bSuccess
;
...
...
@@ -597,12 +596,6 @@ static HRESULT URLMonikerImpl_BindToStorage_hack(LPCWSTR URLName, IBindCtx* pbc,
url
.
nPort
=
INTERNET_DEFAULT_GOPHER_PORT
;
dwService
=
INTERNET_SERVICE_GOPHER
;
break
;
case
INTERNET_SCHEME_HTTPS
:
if
(
!
url
.
nPort
)
url
.
nPort
=
INTERNET_DEFAULT_HTTPS_PORT
;
dwService
=
INTERNET_SERVICE_HTTP
;
break
;
}
bind
->
hconnect
=
InternetConnectW
(
bind
->
hinternet
,
host
,
url
.
nPort
,
user
,
pass
,
...
...
@@ -648,28 +641,6 @@ static HRESULT URLMonikerImpl_BindToStorage_hack(LPCWSTR URLName, IBindCtx* pbc,
else
hres
=
HRESULT_FROM_WIN32
(
GetLastError
());
break
;
case
INTERNET_SERVICE_HTTP
:
bind
->
hrequest
=
HttpOpenRequestW
(
bind
->
hconnect
,
NULL
,
path
,
NULL
,
NULL
,
NULL
,
0
,
(
DWORD_PTR
)
bind
);
if
(
!
bind
->
hrequest
)
{
hres
=
HRESULT_FROM_WIN32
(
GetLastError
());
}
else
if
(
!
HttpSendRequestW
(
bind
->
hrequest
,
NULL
,
0
,
NULL
,
0
))
{
hres
=
HRESULT_FROM_WIN32
(
GetLastError
());
InternetCloseHandle
(
bind
->
hrequest
);
}
else
{
HttpQueryInfoW
(
bind
->
hrequest
,
HTTP_QUERY_CONTENT_LENGTH
|
HTTP_QUERY_FLAG_NUMBER
,
&
bind
->
expected_size
,
&
lensz
,
NULL
);
bSuccess
=
TRUE
;
}
break
;
}
if
(
bSuccess
)
{
...
...
@@ -734,8 +705,7 @@ static HRESULT WINAPI URLMonikerImpl_BindToStorage(IMoniker* iface,
}
if
(
IsEqualGUID
(
&
IID_IStream
,
riid
)
&&
(
url
.
nScheme
==
INTERNET_SCHEME_HTTPS
||
url
.
nScheme
==
INTERNET_SCHEME_FTP
(
url
.
nScheme
==
INTERNET_SCHEME_FTP
||
url
.
nScheme
==
INTERNET_SCHEME_GOPHER
))
return
URLMonikerImpl_BindToStorage_hack
(
This
->
URLName
,
pbc
,
ppvObject
);
...
...
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