mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 02:48:20 +00:00
usp10: Check heap_alloc return value (Coverity).
This commit is contained in:
parent
ff2813364a
commit
163c7021b1
|
@ -1378,6 +1378,7 @@ HRESULT WINAPI ScriptShape(HDC hdc, SCRIPT_CACHE *psc, const WCHAR *pwcChars,
|
|||
if ((get_cache_pitch_family(psc) & TMPF_TRUETYPE) && !psa->fNoGlyphIndex)
|
||||
{
|
||||
WCHAR *rChars = heap_alloc(sizeof(WCHAR) * cChars);
|
||||
if (!rChars) return E_OUTOFMEMORY;
|
||||
for (i = 0; i < cChars; i++)
|
||||
{
|
||||
int idx = i;
|
||||
|
|
Loading…
Reference in a new issue