Commit d1ce8ba0 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

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

parent 8b0b9910
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment