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)
|
if(cidl == 0)
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
|
|
||||||
array = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IShellItem*));
|
array = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, cidl*sizeof(IShellItem*));
|
||||||
if(!array)
|
if(!array)
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user