wininet: Don't pass expected cache file size to CreateUrlCacheEntry if it's unknown.

This commit is contained in:
Jacek Caban 2013-03-08 15:59:20 +01:00 committed by Alexandre Julliard
parent 8b0b99103c
commit d1ce8ba053

View file

@ -2276,7 +2276,7 @@ static void create_cache_entry(http_request_t *req)
return;
}
b = CreateUrlCacheEntryW(url, req->contentLength, NULL, file_name, 0);
b = CreateUrlCacheEntryW(url, req->contentLength == ~0u ? 0 : req->contentLength, NULL, file_name, 0);
if(!b) {
WARN("Could not create cache entry: %08x\n", GetLastError());
return;