shell32: Fix allocation size (Valgrind).

This commit is contained in:
Nikolay Sivov 2015-04-07 12:01:17 +03:00 committed by Alexandre Julliard
parent 369cf7118b
commit 47f8dbcb36
1 changed files with 1 additions and 1 deletions

View File

@ -1314,7 +1314,7 @@ HRESULT WINAPI SHCreateShellItemArrayFromIDLists(UINT cidl,
if(cidl == 0)
return E_INVALIDARG;
array = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IShellItem*));
array = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, cidl*sizeof(IShellItem*));
if(!array)
return E_OUTOFMEMORY;