wininet: Don't call URL_LocalFileNameToPathA when asked for a unicode string and URL_LocalFileNameToPathW fails.
This commit is contained in:
parent
024c13c174
commit
9189bf3d72
|
@ -1005,7 +1005,7 @@ static DWORD URLCache_CopyEntry(
|
|||
lpszLocalFileName = (LPSTR)lpCacheEntryInfo + dwRequiredSize;
|
||||
nLocalFilePathSize = *lpdwBufferSize - dwRequiredSize;
|
||||
if ((bUnicode && URLCache_LocalFileNameToPathW(pContainer, pHeader, (LPCSTR)pUrlEntry + pUrlEntry->dwOffsetLocalName, pUrlEntry->CacheDir, (LPWSTR)lpszLocalFileName, &nLocalFilePathSize)) ||
|
||||
URLCache_LocalFileNameToPathA(pContainer, pHeader, (LPCSTR)pUrlEntry + pUrlEntry->dwOffsetLocalName, pUrlEntry->CacheDir, lpszLocalFileName, &nLocalFilePathSize))
|
||||
(!bUnicode && URLCache_LocalFileNameToPathA(pContainer, pHeader, (LPCSTR)pUrlEntry + pUrlEntry->dwOffsetLocalName, pUrlEntry->CacheDir, lpszLocalFileName, &nLocalFilePathSize)))
|
||||
{
|
||||
lpCacheEntryInfo->lpszLocalFileName = lpszLocalFileName;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue