Commit bc295ef8 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

shdocvw: Fixed buffer size to GetPrivateProfileStringW.

parent 1b8f4b9e
......@@ -329,7 +329,7 @@ static HRESULT WINAPI PersistFile_Load(IPersistFile *pFile, LPCOLESTR pszFileNam
{
DWORD len = 128;
DWORD r;
WCHAR *url = CoTaskMemAlloc(len);
WCHAR *url = CoTaskMemAlloc(len*sizeof(WCHAR));
if (url != NULL)
{
r = GetPrivateProfileStringW(str_header, str_URL, NULL, url, len, pszFileName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment