[Ttssh2-commit] [7759] ほかのシートでは GetSafeHwnd() を使っているので統一

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2019年 6月 12日 (水) 17:32:27 JST


Revision: 7759
          https://osdn.net/projects/ttssh2/scm/svn/commits/7759
Author:   maya
Date:     2019-06-12 17:32:27 +0900 (Wed, 12 Jun 2019)
Log Message:
-----------
ほかのシートでは GetSafeHwnd() を使っているので統一

Modified Paths:
--------------
    trunk/teraterm/teraterm/addsetting.cpp

-------------- next part --------------
Modified: trunk/teraterm/teraterm/addsetting.cpp
===================================================================
--- trunk/teraterm/teraterm/addsetting.cpp	2019-06-12 08:31:32 UTC (rev 7758)
+++ trunk/teraterm/teraterm/addsetting.cpp	2019-06-12 08:32:27 UTC (rev 7759)
@@ -826,7 +826,7 @@
 				memset(&ofn, 0, sizeof(ofn));
 				memset(szFile, 0, sizeof(szFile));
 				ofn.lStructSize = get_OPENFILENAME_SIZEA();
-				ofn.hwndOwner = m_pSheet->m_hWnd;
+				ofn.hwndOwner = GetSafeHwnd();
 				ofn.lpstrFilter = "Image Files(*.jpg;*.jpeg;*.bmp)\\0*.jpg;*.jpeg;*.bmp\\0All Files(*.*)\\0*.*\\0\\0";
 				ofn.lpstrFile = szFile;
 				ofn.nMaxFile = _countof(szFile);


Ttssh2-commit メーリングリストの案内
Back to archive index