wininet: Correctly set headers size in CommitUrlCacheEntryW function.

This commit is contained in:
Piotr Caban 2012-10-03 11:24:37 +02:00 committed by Alexandre Julliard
parent 5e6e26e1df
commit a3a909f2b9
1 changed files with 2 additions and 0 deletions

View File

@ -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))
{