diff options
author | Underground78 <underground78@users.sourceforge.net> | 2014-07-14 01:19:44 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2014-07-18 01:34:00 +0400 |
commit | e1fa7e061791fdfb450b8acb64cebdfce0548a73 (patch) | |
tree | ccdbc5f803722c5adf205779b13e8d47517de673 /src/Subtitles/RTS.cpp | |
parent | 51d66a4fa234e70bc0342012a214a5666e64dc91 (diff) |
CMyFont: Check that the fallback CreateFontIndirect doesn't fail in debug mode.
It should never happen in theory.
Diffstat (limited to 'src/Subtitles/RTS.cpp')
-rw-r--r-- | src/Subtitles/RTS.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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);
|