dwrite: Add missing return value check (Coverity).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-08-04 10:56:38 +03:00 committed by Alexandre Julliard
parent a65718a3e7
commit ff6f31de76
1 changed files with 3 additions and 2 deletions

View File

@ -1596,12 +1596,13 @@ static HRESULT WINAPI dwritefont3_GetFontFaceReference(IDWriteFont3 *iface, IDWr
static BOOL WINAPI dwritefont3_HasCharacter(IDWriteFont3 *iface, UINT32 ch)
{
struct dwrite_font *This = impl_from_IDWriteFont3(iface);
HRESULT hr;
BOOL ret;
TRACE("(%p)->(0x%x)\n", This, ch);
IDWriteFont_HasCharacter((IDWriteFont*)iface, ch, &ret);
return ret;
hr = IDWriteFont_HasCharacter((IDWriteFont*)iface, ch, &ret);
return hr == S_OK && ret;
}
static DWRITE_LOCALITY WINAPI dwritefont3_GetLocality(IDWriteFont3 *iface)