[PATCH] dwrite: use correct collection (Coverity)

Marcus Meissner marcus at jet.franken.de
Tue Jun 28 15:07:32 CDT 2016


1362852 Dereference after null check

Signed-off-by: Marcus Meissner <marcus at jet.franken.de>
---
 dlls/dwrite/layout.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dwrite/layout.c b/dlls/dwrite/layout.c
index 926a2cf..6d3d8b7 100644
--- a/dlls/dwrite/layout.c
+++ b/dlls/dwrite/layout.c
@@ -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);
-- 
2.8.4




More information about the wine-patches mailing list