mirror of
https://github.com/reactos/wine.git
synced 2025-01-22 03:49:02 +00:00
dwrite: Font collection pointer is never null when creating text format.
This commit is contained in:
parent
bbe6655280
commit
f4e3005645
@ -1972,14 +1972,8 @@ HRESULT create_textformat(const WCHAR *family_name, IDWriteFontCollection *colle
|
||||
This->format.trimming.delimiter = 0;
|
||||
This->format.trimming.delimiterCount = 0;
|
||||
This->format.trimmingsign = NULL;
|
||||
|
||||
if (collection)
|
||||
{
|
||||
This->format.collection = collection;
|
||||
IDWriteFontCollection_AddRef(collection);
|
||||
}
|
||||
else
|
||||
ERR("Collection should always be set\n");
|
||||
This->format.collection = collection;
|
||||
IDWriteFontCollection_AddRef(collection);
|
||||
|
||||
*format = (IDWriteTextFormat*)&This->IDWriteTextFormat1_iface;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user