Skip to content
Snippets Groups Projects
Commit d6fb80a1 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard
Browse files

usp10: Use heap_calloc() in ScriptLayout().

parent 3987d939
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment