Misha Koshelev : urlmon:
Call HttpOpenRequest with INTERNET_FLAG_KEEP_CONNECTION,
INTERNET_FLAG_NO_CACHE_WRITE if appropriate.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jul 23 05:55:34 CDT 2007
Module: wine
Branch: master
Commit: 2a4e41878d0ba56dcf5353a24d12eb9cb048b47a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2a4e41878d0ba56dcf5353a24d12eb9cb048b47a
Author: Misha Koshelev <mk144210 at bcm.edu>
Date: Fri Jul 20 19:55:55 2007 -0500
urlmon: Call HttpOpenRequest with INTERNET_FLAG_KEEP_CONNECTION, INTERNET_FLAG_NO_CACHE_WRITE if appropriate.
---
dlls/urlmon/http.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/urlmon/http.c b/dlls/urlmon/http.c
index 6a8e603..33d23b0 100644
--- a/dlls/urlmon/http.c
+++ b/dlls/urlmon/http.c
@@ -286,7 +286,7 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
HttpProtocol *This = PROTOCOL_THIS(iface);
URL_COMPONENTSW url;
BINDINFO bindinfo;
- DWORD len = 0;
+ DWORD len = 0, request_flags = INTERNET_FLAG_KEEP_CONNECTION;
ULONG num = 0;
IServiceProvider *service_provider = 0;
IHttpNegotiate2 *http_negotiate2 = 0;
@@ -401,8 +401,10 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
}
accept_mimes[num] = 0;
+ if (This->grfBINDF & BINDF_NOWRITECACHE)
+ request_flags |= INTERNET_FLAG_NO_CACHE_WRITE;
This->request = HttpOpenRequestW(This->connect, NULL, path, NULL, NULL,
- (LPCWSTR *)accept_mimes, 0, (DWORD)This);
+ (LPCWSTR *)accept_mimes, request_flags, (DWORD)This);
if (!This->request)
{
WARN("HttpOpenRequest failed: %d\n", GetLastError());
More information about the wine-cvs
mailing list