Jacek Caban : urlmon: Correctly handle accept ranges in HttpProtocol_open_request.
Alexandre Julliard
julliard at winehq.org
Wed Dec 16 09:41:31 CST 2009
Module: wine
Branch: master
Commit: 613ebdc8b4509446b25dfa5d8b2f67ec934d51b2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=613ebdc8b4509446b25dfa5d8b2f67ec934d51b2
Author: Jacek Caban <jacek at codeweavers.com>
Date: Tue Dec 15 21:15:45 2009 +0100
urlmon: Correctly handle accept ranges in HttpProtocol_open_request.
---
dlls/urlmon/http.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/urlmon/http.c b/dlls/urlmon/http.c
index 2e47b11..f511724 100644
--- a/dlls/urlmon/http.c
+++ b/dlls/urlmon/http.c
@@ -232,7 +232,7 @@ static HRESULT HttpProtocol_open_request(Protocol *prot, LPCWSTR url, DWORD requ
static HRESULT HttpProtocol_start_downloading(Protocol *prot)
{
HttpProtocol *This = ASYNCPROTOCOL_THIS(prot);
- LPWSTR content_type = 0, content_length = 0;
+ LPWSTR content_type, content_length, ranges;
DWORD len = sizeof(DWORD);
DWORD status_code;
BOOL res;
@@ -263,8 +263,11 @@ static HRESULT HttpProtocol_start_downloading(Protocol *prot)
WARN("HttpQueryInfo failed: %d\n", GetLastError());
}
- if(This->https)
+ ranges = query_http_info(This, HTTP_QUERY_ACCEPT_RANGES);
+ if(ranges) {
IInternetProtocolSink_ReportProgress(This->base.protocol_sink, BINDSTATUS_ACCEPTRANGES, NULL);
+ heap_free(ranges);
+ }
content_type = query_http_info(This, HTTP_QUERY_CONTENT_TYPE);
if(content_type) {
More information about the wine-cvs
mailing list