Revision: 7535 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/7535 Author: zmatsuo Date: 2019-04-01 21:44:34 +0900 (Mon, 01 Apr 2019) Log Message: ----------- TTCDialog::DestroyWindow()#tmfc.cpp を安全にした PostNcDestroy() で delete this としているコード対策 Modified Paths: -------------- trunk/teraterm/common/tmfc.cpp -------------- next part -------------- Modified: trunk/teraterm/common/tmfc.cpp =================================================================== --- trunk/teraterm/common/tmfc.cpp 2019-03-29 15:09:42 UTC (rev 7534) +++ trunk/teraterm/common/tmfc.cpp 2019-04-01 12:44:34 UTC (rev 7535) @@ -616,10 +616,12 @@ void TTCDialog::DestroyWindow() { if (m_hWnd != nullptr) { + HWND hWnd; ::EnableWindow(m_hParentWnd,TRUE); ::SetFocus(m_hParentWnd); - ::DestroyWindow(m_hWnd); + hWnd = m_hWnd; m_hWnd = nullptr; + ::DestroyWindow(hWnd); } }