mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
wininet: Don't pass expected cache file size to CreateUrlCacheEntry if it's unknown.
This commit is contained in:
parent
8b0b99103c
commit
d1ce8ba053
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue