From 402e534b8de6f80adfafae6c36904e16c2085f14 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Mon, 12 May 2014 22:01:17 +0200 Subject: [PATCH] Initialize members Signed-off-by: Sven Strickroth --- src/TortoiseIDiff/PicWindow.h | 4 ++++ src/Utils/MiscUI/BufferDC.cpp | 13 +++++++++++++ 2 files changed, 17 insertions(+) diff --git a/src/TortoiseIDiff/PicWindow.h b/src/TortoiseIDiff/PicWindow.h index 672ac735a..d02171529 100644 --- a/src/TortoiseIDiff/PicWindow.h +++ b/src/TortoiseIDiff/PicWindow.h @@ -111,6 +111,10 @@ public: m_szTip[0] = 0; ptPanStart.x = -1; ptPanStart.y = -1; + m_inforect.left = 0; + m_inforect.right = 0; + m_inforect.bottom = 0; + m_inforect.top = 0; }; enum BlendType diff --git a/src/Utils/MiscUI/BufferDC.cpp b/src/Utils/MiscUI/BufferDC.cpp index fd3ba7eb7..aae939f27 100644 --- a/src/Utils/MiscUI/BufferDC.cpp +++ b/src/Utils/MiscUI/BufferDC.cpp @@ -25,6 +25,19 @@ CBufferDC::CBufferDC(CWnd* pWnd) : CPaintDC(pWnd) CPaintDC::m_hDC = m_hMemoryDC; CPaintDC::m_hAttribDC = m_hMemoryDC; } + else + { + ATLASSERT(false); + m_hAttributeDC = nullptr; + m_hOutputDC = nullptr; + m_hMemoryDC = nullptr; + m_hPaintBitmap = nullptr; + m_hOldBitmap = nullptr; + m_ClientRect.right = 0; + m_ClientRect.left = 0; + m_ClientRect.top = 0; + m_ClientRect.bottom = 0; + } m_bBoundsUpdated = FALSE; } -- 2.11.4.GIT