dwrite: Use correct collection (Coverity).

Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Marcus Meissner 2016-06-28 22:07:32 +02:00 committed by Alexandre Julliard
parent e81d495357
commit 64ccbcbf2f

View file

@ -807,7 +807,7 @@ static HRESULT layout_compute_runs(struct dwrite_textlayout *layout)
else
IDWriteFactory_GetSystemFontCollection((IDWriteFactory*)layout->factory, &collection, FALSE);
hr = create_matching_font(range->collection, range->fontfamily, range->weight,
hr = create_matching_font(collection, range->fontfamily, range->weight,
range->style, range->stretch, &font);
IDWriteFontCollection_Release(collection);