From ebe0ab019e3c45fac0ff6067ff8808b060aff987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Sch=C3=BCmann?= Date: Tue, 5 Nov 2013 16:17:53 +0000 Subject: // 3 out of 5 ! fixed allocation of new char[] and freeing as Gdiplus::ImageCodecInfo struct ! fixed missing initialization (also reordered to comply declaration) * allowed target window to be reused if "Open Again" is set. git-svn-id: http://svn.miranda-ng.org/main/trunk@6788 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SendScreenshotPlus/src/UMainForm.cpp | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'plugins/SendScreenshotPlus/src/UMainForm.cpp') diff --git a/plugins/SendScreenshotPlus/src/UMainForm.cpp b/plugins/SendScreenshotPlus/src/UMainForm.cpp index 16c6dac8c4..909e5f7c5c 100644 --- a/plugins/SendScreenshotPlus/src/UMainForm.cpp +++ b/plugins/SendScreenshotPlus/src/UMainForm.cpp @@ -662,7 +662,7 @@ void TfrmMain::UMevent(WPARAM wParam, LPARAM lParam) { FIP->FI_Unload(m_Screenshot); m_Screenshot = NULL; } - m_hTargetWindow = m_hLastWin = NULL; + /* m_hTargetWindow = */m_hLastWin = NULL; Show(); }else{ // Saving Options and close @@ -678,21 +678,25 @@ void TfrmMain::UMevent(WPARAM wParam, LPARAM lParam) { //--------------------------------------------------------------------------- // Standard konstruktor/destruktor TfrmMain::TfrmMain() { + /* m_opt_XXX */ + m_bOnExitSave = TRUE; + m_hWnd = NULL; m_hContact = NULL; - m_hTargetWindow = NULL; + m_bDeleteAfterSend=m_bFormAbout=m_bFormEdit=false; + m_hTargetWindow =m_hLastWin=NULL; m_hCursor = NULL; + m_FDestFolder =m_pszFile=m_pszFileDesc=NULL; m_Screenshot = NULL; - m_pszFile = m_pszFileDesc = m_FDestFolder = NULL; - m_bFormAbout = m_bFormEdit = m_bDeleteAfterSend = m_bSelectingWindow = false; + /* m_AlphaColor */ m_cSend = NULL; - m_bOnExitSave = TRUE; - LoadOptions(); + + m_MonitorCount = MonitorInfoEnum(m_Monitors, m_VirtualScreen); + m_Monitors = NULL; + /* m_opt_XXX */ LoadOptions(); m_bCapture = false; + /* m_hwndTab,m_hwndTabPage */ m_himlTab = NULL; - m_Monitors = NULL; - m_MonitorCount = MonitorInfoEnum(m_Monitors, m_VirtualScreen); - } TfrmMain::~TfrmMain() { -- cgit v1.2.3