mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 19:49:50 +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
1 changed files with 2 additions and 2 deletions
|
@ -1996,7 +1996,7 @@ static HRESULT WINAPI dwritefont_GetFontFamily(IDWriteFont3 *iface, IDWriteFontF
|
||||||
|
|
||||||
TRACE("%p, %p.\n", iface, family);
|
TRACE("%p, %p.\n", iface, family);
|
||||||
|
|
||||||
*family = (IDWriteFontFamily *)font->family;
|
*family = (IDWriteFontFamily *)&font->family->IDWriteFontFamily2_iface;
|
||||||
IDWriteFontFamily_AddRef(*family);
|
IDWriteFontFamily_AddRef(*family);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
@ -2531,7 +2531,7 @@ static HRESULT WINAPI dwritefontfamily_GetFontCollection(IDWriteFontFamily2 *ifa
|
||||||
|
|
||||||
TRACE("%p, %p.\n", iface, collection);
|
TRACE("%p, %p.\n", iface, collection);
|
||||||
|
|
||||||
*collection = (IDWriteFontCollection *)family->collection;
|
*collection = (IDWriteFontCollection *)&family->collection->IDWriteFontCollection3_iface;
|
||||||
IDWriteFontCollection_AddRef(*collection);
|
IDWriteFontCollection_AddRef(*collection);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue