dwrite: Avoid HRESULT codes for BOOL retval methods (PVS-Studio).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2015-10-12 22:30:51 +03:00 committed by Alexandre Julliard
parent 175e68fe05
commit 4b6a7e78e9
1 changed files with 2 additions and 2 deletions

View File

@ -1250,7 +1250,7 @@ static BOOL WINAPI dwritefont_IsSymbolFont(IDWriteFont2 *iface)
hr = get_fontface_from_font(This, &fontface);
if (FAILED(hr))
return hr;
return FALSE;
return IDWriteFontFace2_IsSymbolFont(fontface);
}
@ -1401,7 +1401,7 @@ static BOOL WINAPI dwritefont1_IsMonospacedFont(IDWriteFont2 *iface)
hr = get_fontface_from_font(This, &fontface);
if (FAILED(hr))
return hr;
return FALSE;
return IDWriteFontFace2_IsMonospacedFont(fontface);
}