Commit 8c6040fc authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

wininet: Only copy the relative filename into the UrlEntry structure.

parent 719aa10a
...@@ -2204,7 +2204,7 @@ static BOOL WINAPI CommitUrlCacheEntryInternal( ...@@ -2204,7 +2204,7 @@ static BOOL WINAPI CommitUrlCacheEntryInternal(
strcpy((LPSTR)pUrlEntry + pUrlEntry->dwOffsetUrl, achUrl); strcpy((LPSTR)pUrlEntry + pUrlEntry->dwOffsetUrl, achUrl);
if (dwOffsetLocalFileName) if (dwOffsetLocalFileName)
strcpy((LPSTR)((LPBYTE)pUrlEntry + dwOffsetLocalFileName), pchLocalFileName); strcpy((LPSTR)((LPBYTE)pUrlEntry + dwOffsetLocalFileName), pchLocalFileName + DIR_LENGTH + 1);
if (dwOffsetHeader) if (dwOffsetHeader)
memcpy((LPBYTE)pUrlEntry + dwOffsetHeader, lpHeaderInfo, dwHeaderSize); memcpy((LPBYTE)pUrlEntry + dwOffsetHeader, lpHeaderInfo, dwHeaderSize);
......
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