shell32: Fix allocation size (Valgrind).
This commit is contained in:
parent
369cf7118b
commit
47f8dbcb36
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue