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

This commit is contained in:
James Hawkins 2006-07-28 13:46:06 -07:00 committed by Alexandre Julliard
parent 719aa10a4b
commit 8c6040fccc
1 changed files with 1 additions and 1 deletions

View File

@ -2204,7 +2204,7 @@ static BOOL WINAPI CommitUrlCacheEntryInternal(
strcpy((LPSTR)pUrlEntry + pUrlEntry->dwOffsetUrl, achUrl);
if (dwOffsetLocalFileName)
strcpy((LPSTR)((LPBYTE)pUrlEntry + dwOffsetLocalFileName), pchLocalFileName);
strcpy((LPSTR)((LPBYTE)pUrlEntry + dwOffsetLocalFileName), pchLocalFileName + DIR_LENGTH + 1);
if (dwOffsetHeader)
memcpy((LPBYTE)pUrlEntry + dwOffsetHeader, lpHeaderInfo, dwHeaderSize);