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

This commit is contained in:
Marcus Meissner 2014-09-21 14:44:43 +02:00 committed by Alexandre Julliard
parent 23aaef96a2
commit 90774871c8
1 changed files with 1 additions and 1 deletions

View File

@ -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++)