shdocvw: Fix a buffer overflow in InternetShortcut's IPersistFile::Load.

This commit is contained in:
Alexander Nicolaysen Sørnes 2010-07-14 15:15:47 +02:00 committed by Alexandre Julliard
parent 1b0182f9bb
commit c345ca1a0f
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ static HRESULT WINAPI PersistFile_Load(IPersistFile *pFile, LPCOLESTR pszFileNam
{
CoTaskMemFree(url);
len *= 2;
url = CoTaskMemAlloc(len);
url = CoTaskMemAlloc(len*sizeof(WCHAR));
if (url == NULL)
break;
r = GetPrivateProfileStringW(str_header, str_URL, NULL, url, len, pszFileName);