Commit a3a909f2 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

wininet: Correctly set headers size in CommitUrlCacheEntryW function.

parent 5e6e26e1
......@@ -3419,6 +3419,8 @@ BOOL WINAPI CommitUrlCacheEntryW(
if (!lpHeaderInfo || (header_info = heap_strdupWtoA(lpHeaderInfo)))
{
if(header_info)
len = strlen(header_info);
if (CommitUrlCacheEntryInternal(lpszUrlName, lpszLocalFileName, ExpireTime, LastModifiedTime,
CacheEntryType, (LPBYTE)header_info, len, lpszFileExtension, lpszOriginalUrl))
{
......
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