Commit 90774871 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

dwrite: Fixed NULL ptr deref before check (Coverity).

parent 23aaef96
......@@ -390,9 +390,9 @@ static HRESULT WINAPI dwritefontface_TryGetFontTable(IDWriteFontFace *iface, UIN
TRACE("(%p)->(%u %p %p %p %p)\n", This, table_tag, table_data, table_size, context, exists);
table = heap_alloc(sizeof(struct dwrite_fonttable));
table->magic = DWRITE_FONTTABLE_MAGIC;
if (!table)
return E_OUTOFMEMORY;
table->magic = DWRITE_FONTTABLE_MAGIC;
*exists = FALSE;
for (i = 0; i < This->data->file_count && !(*exists); i++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment