usp10: Use heap_calloc() in ScriptPlace().
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
c09072e5dd
commit
9be6ff403d
|
@ -3501,8 +3501,8 @@ HRESULT WINAPI ScriptPlace(HDC hdc, SCRIPT_CACHE *psc, const WORD *pwGlyphs,
|
|||
if (!psva) return E_INVALIDARG;
|
||||
if (!pGoffset) return E_FAIL;
|
||||
|
||||
glyphProps = heap_alloc(sizeof(SCRIPT_GLYPHPROP)*cGlyphs);
|
||||
if (!glyphProps) return E_OUTOFMEMORY;
|
||||
if (!(glyphProps = heap_calloc(cGlyphs, sizeof(*glyphProps))))
|
||||
return E_OUTOFMEMORY;
|
||||
|
||||
for (i = 0; i < cGlyphs; i++)
|
||||
glyphProps[i].sva = psva[i];
|
||||
|
|
Loading…
Reference in New Issue