Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnderground78 <underground78@users.sourceforge.net>2014-07-14 01:19:44 +0400
committerUnderground78 <underground78@users.sourceforge.net>2014-07-18 01:34:00 +0400
commite1fa7e061791fdfb450b8acb64cebdfce0548a73 (patch)
treeccdbc5f803722c5adf205779b13e8d47517de673 /src/Subtitles/RTS.cpp
parent51d66a4fa234e70bc0342012a214a5666e64dc91 (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.cpp2
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);