From 3cfdc8c0b364907413e4626ff469138eccb88942 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sun, 24 Nov 2013 15:43:37 +0200 Subject: [PATCH] Gfx: Add missing HRESULT check --- Common/Gfx/TextFormatD2D.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Common/Gfx/TextFormatD2D.cpp b/Common/Gfx/TextFormatD2D.cpp index a92c31af..04e4f482 100644 --- a/Common/Gfx/TextFormatD2D.cpp +++ b/Common/Gfx/TextFormatD2D.cpp @@ -168,6 +168,7 @@ void TextFormatD2D::SetProperties( { hr = Util::GetFamilyNameFromDWriteFont( dwriteFont, dwriteFamilyName, _countof(dwriteFamilyName)); + if (SUCCEEDED(hr)) { fontFamily = dwriteFamilyName; Util::GetPropertiesFromDWriteFont(