From 5fd06d2a890c922c1f195b1746a7503cdb3e67b3 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Tue, 9 Feb 2016 14:17:06 +0100 Subject: [PATCH] Initialize member Signed-off-by: Sven Strickroth --- src/Utils/MiscUI/LinkControl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Utils/MiscUI/LinkControl.cpp b/src/Utils/MiscUI/LinkControl.cpp index d5c43811e..cfc0a7d02 100644 --- a/src/Utils/MiscUI/LinkControl.cpp +++ b/src/Utils/MiscUI/LinkControl.cpp @@ -24,6 +24,7 @@ const UINT CLinkControl::LK_LINKITEMCLICKED = ::RegisterWindowMessage(L"LK_LINKI CLinkControl::CLinkControl(void) : m_bOverControl(false) + , m_hLinkCursor(nullptr) { } @@ -59,7 +60,7 @@ void CLinkControl::PreSubclassWindow() if (hFont) pFont = CFont::FromHandle(hFont); } - ASSERT(pFont->GetSafeHandle()); + ASSERT(pFont && pFont->GetSafeHandle()); LOGFONT lf; pFont->GetObject(sizeof(lf), &lf); -- 2.11.4.GIT