mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 16:53:37 +00:00
dwrite: Avoid casts from COM object to interface.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3fa19c8c75
commit
431f157cd2
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue