On Friday 30 June 2006 07:36, James Hawkins wrote:
- lstrcatW(cache_path, backslash);
- lstrcatW(cache_path, content);
- if (!GetTempFileNameW(cache_path, prefix, 0, cache_path))
return E_FAIL;
- if (lstrlenW(cache_path) > dwBufLength)
return E_INVALIDARG;
- lstrcpyW(szFileName, cache_path);
- return URLDownloadToFileW(lpUnkCaller, szURL, szFileName, 0, pBSC);
This is not the correct behaviour - doing this will result in the cache directories filling up with files that are not mentioned in the cache index. You should be calling CreateUrlCacheEntryW to get the file name for the new file.
On 6/29/06, Troy Rollo wine@troy.rollo.name wrote:
This is not the correct behaviour - doing this will result in the cache directories filling up with files that are not mentioned in the cache index. You should be calling CreateUrlCacheEntryW to get the file name for the new file.
I was looking for something like that, thanks Troy.