usp10: Use heap_calloc() in ScriptLayout().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Aric Stewart <aric@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3987d93992
commit
d6fb80a110
|
@ -3755,8 +3755,7 @@ HRESULT WINAPI ScriptLayout(int runs, const BYTE *level, int *vistolog, int *log
|
|||
if (!level || (!vistolog && !logtovis))
|
||||
return E_INVALIDARG;
|
||||
|
||||
indexs = heap_alloc(sizeof(int) * runs);
|
||||
if (!indexs)
|
||||
if (!(indexs = heap_calloc(runs, sizeof(*indexs))))
|
||||
return E_OUTOFMEMORY;
|
||||
|
||||
if (vistolog)
|
||||
|
|
Loading…
Reference in New Issue