From e1fa7e061791fdfb450b8acb64cebdfce0548a73 Mon Sep 17 00:00:00 2001 From: Underground78 Date: Sun, 13 Jul 2014 23:19:44 +0200 Subject: CMyFont: Check that the fallback CreateFontIndirect doesn't fail in debug mode. It should never happen in theory. --- src/Subtitles/RTS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Subtitles/RTS.cpp') diff --git a/src/Subtitles/RTS.cpp b/src/Subtitles/RTS.cpp index bb88824d4..94accdbd8 100644 --- a/src/Subtitles/RTS.cpp +++ b/src/Subtitles/RTS.cpp @@ -52,7 +52,7 @@ CMyFont::CMyFont(STSStyle& style) if (!CreateFontIndirect(&lf)) { _tcscpy_s(lf.lfFaceName, _T("Arial")); - CreateFontIndirect(&lf); + VERIFY(CreateFontIndirect(&lf)); } HFONT hOldFont = SelectFont(g_hDC, *this); -- cgit v1.2.3