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:
parent
175e68fe05
commit
4b6a7e78e9
|
@ -1250,7 +1250,7 @@ static BOOL WINAPI dwritefont_IsSymbolFont(IDWriteFont2 *iface)
|
||||||
|
|
||||||
hr = get_fontface_from_font(This, &fontface);
|
hr = get_fontface_from_font(This, &fontface);
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
return hr;
|
return FALSE;
|
||||||
|
|
||||||
return IDWriteFontFace2_IsSymbolFont(fontface);
|
return IDWriteFontFace2_IsSymbolFont(fontface);
|
||||||
}
|
}
|
||||||
|
@ -1401,7 +1401,7 @@ static BOOL WINAPI dwritefont1_IsMonospacedFont(IDWriteFont2 *iface)
|
||||||
|
|
||||||
hr = get_fontface_from_font(This, &fontface);
|
hr = get_fontface_from_font(This, &fontface);
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
return hr;
|
return FALSE;
|
||||||
|
|
||||||
return IDWriteFontFace2_IsMonospacedFont(fontface);
|
return IDWriteFontFace2_IsMonospacedFont(fontface);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue