[PATCH] dwrite: Avoid HRESULT codes for BOOL retval methods (PVS-Studio)

Nikolay Sivov nsivov at codeweavers.com
Mon Oct 12 14:30:51 CDT 2015


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/dwrite/font.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/dwrite/font.c b/dlls/dwrite/font.c
index e98dc15..bb01ccf 100644
--- a/dlls/dwrite/font.c
+++ b/dlls/dwrite/font.c
@@ -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);
 }
-- 
2.6.1




More information about the wine-patches mailing list