Commit 431f157c authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dwrite: Avoid casts from COM object to interface.

parent 3fa19c8c
......@@ -1996,7 +1996,7 @@ static HRESULT WINAPI dwritefont_GetFontFamily(IDWriteFont3 *iface, IDWriteFontF
TRACE("%p, %p.\n", iface, family);
*family = (IDWriteFontFamily *)font->family;
*family = (IDWriteFontFamily *)&font->family->IDWriteFontFamily2_iface;
IDWriteFontFamily_AddRef(*family);
return S_OK;
}
......@@ -2531,7 +2531,7 @@ static HRESULT WINAPI dwritefontfamily_GetFontCollection(IDWriteFontFamily2 *ifa
TRACE("%p, %p.\n", iface, collection);
*collection = (IDWriteFontCollection *)family->collection;
*collection = (IDWriteFontCollection *)&family->collection->IDWriteFontCollection3_iface;
IDWriteFontCollection_AddRef(*collection);
return S_OK;
}
......
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