Gfx: Add missing HRESULT check

This commit is contained in:
Birunthan Mohanathas 2013-11-24 15:43:37 +02:00
parent 9885c57b70
commit 3cfdc8c0b3

View File

@ -168,6 +168,7 @@ void TextFormatD2D::SetProperties(
{ {
hr = Util::GetFamilyNameFromDWriteFont( hr = Util::GetFamilyNameFromDWriteFont(
dwriteFont, dwriteFamilyName, _countof(dwriteFamilyName)); dwriteFont, dwriteFamilyName, _countof(dwriteFamilyName));
if (SUCCEEDED(hr))
{ {
fontFamily = dwriteFamilyName; fontFamily = dwriteFamilyName;
Util::GetPropertiesFromDWriteFont( Util::GetPropertiesFromDWriteFont(