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

usp10: Use heap_calloc() in ScriptShapeOpenType().

parent 813ab925
No related branches found
No related tags found
No related merge requests found
......@@ -3188,8 +3188,9 @@ HRESULT WINAPI ScriptShapeOpenType( HDC hdc, SCRIPT_CACHE *psc,
WCHAR *rChars;
if ((hr = SHAPE_CheckFontForRequiredFeatures(hdc, (ScriptCache *)*psc, psa)) != S_OK) return hr;
rChars = heap_alloc(sizeof(WCHAR) * cChars);
if (!rChars) return E_OUTOFMEMORY;
if (!(rChars = heap_calloc(cChars, sizeof(*rChars))))
return E_OUTOFMEMORY;
for (i = 0, g = 0, cluster = 0; i < cChars; i++)
{
int idx = i;
......
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