[PATCH 7/7] dwrite: Fix IsColorFont() return type for IDWriteFont2

Nikolay Sivov nsivov at codeweavers.com
Thu Aug 6 11:45:14 CDT 2015


---

-------------- next part --------------
>From 84d4088cae78401541620c241a0a6d55a0db7d83 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Thu, 6 Aug 2015 19:38:21 +0300
Subject: [PATCH 7/7] dwrite: Fix IsColorFont() return type for IDWriteFont2

---
 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 1f4e565..93aae86 100644
--- a/dlls/dwrite/font.c
+++ b/dlls/dwrite/font.c
@@ -1405,7 +1405,7 @@ static BOOL WINAPI dwritefont1_IsMonospacedFont(IDWriteFont2 *iface)
     return IDWriteFontFace2_IsMonospacedFont(fontface);
 }
 
-static HRESULT WINAPI dwritefont2_IsColorFont(IDWriteFont2 *iface)
+static BOOL WINAPI dwritefont2_IsColorFont(IDWriteFont2 *iface)
 {
     struct dwrite_font *This = impl_from_IDWriteFont2(iface);
     IDWriteFontFace2 *fontface;
@@ -1415,7 +1415,7 @@ static HRESULT WINAPI dwritefont2_IsColorFont(IDWriteFont2 *iface)
 
     hr = get_fontface_from_font(This, &fontface);
     if (FAILED(hr))
-        return hr;
+        return FALSE;
 
     return IDWriteFontFace2_IsColorFont(fontface);
 }
-- 
2.1.4



More information about the wine-patches mailing list