urlmon: Fixed target buffer length to MultiByteToWideChar.

This commit is contained in:
Marcus Meissner 2009-02-04 21:15:04 +01:00 committed by Alexandre Julliard
parent 635ec22e4b
commit 8b812b413d
1 changed files with 1 additions and 1 deletions

View File

@ -1185,7 +1185,7 @@ HRESULT WINAPI URLDownloadToCacheFileA(LPUNKNOWN lpUnkCaller, LPCSTR szURL, LPST
if(szURL) {
len = MultiByteToWideChar(CP_ACP, 0, szURL, -1, NULL, 0);
url = heap_alloc(len*sizeof(WCHAR));
MultiByteToWideChar(CP_ACP, 0, szURL, -1, url, -1);
MultiByteToWideChar(CP_ACP, 0, szURL, -1, url, len);
}
if(szFileName)