diff options
author | René Schümann <white06tiger@gmail.com> | 2013-11-05 16:17:53 +0000 |
---|---|---|
committer | René Schümann <white06tiger@gmail.com> | 2013-11-05 16:17:53 +0000 |
commit | ebe0ab019e3c45fac0ff6067ff8808b060aff987 (patch) | |
tree | 55937f26f65900f28f9d15ac2d29b29b2b647382 /plugins/SendScreenshotPlus/src/UMainForm.cpp | |
parent | 36dffc5b63263b87e6cf63e74edd404b7ede7c42 (diff) |
// 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
Diffstat (limited to 'plugins/SendScreenshotPlus/src/UMainForm.cpp')
-rw-r--r-- | plugins/SendScreenshotPlus/src/UMainForm.cpp | 22 |
1 files changed, 13 insertions, 9 deletions
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() { |