[ttssh2-commit] [10559] SCP ファイル受信時に、保存先に同名のファイルがあるときの確認ダイアログを調整

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2023年 2月 2日 (木) 20:43:24 JST


Revision: 10559
          https://osdn.net/projects/ttssh2/scm/svn/commits/10559
Author:   nmaya
Date:     2023-02-02 20:43:24 +0900 (Thu, 02 Feb 2023)
Log Message:
-----------
SCP ファイル受信時に、保存先に同名のファイルがあるときの確認ダイアログを調整

- アイコンを MB_ICONERROR から MB_ICONQUESTION に変更
- GetLastError() の結果表示を削除

ticket #44169

Ticket Links:
------------
    https://osdn.net/projects/ttssh2/tracker/detail/44169

Modified Paths:
--------------
    branches/4-stable/ttssh2/ttxssh/ssh.c

-------------- next part --------------
Modified: branches/4-stable/ttssh2/ttxssh/ssh.c
===================================================================
--- branches/4-stable/ttssh2/ttxssh/ssh.c	2023-02-01 15:39:44 UTC (rev 10558)
+++ branches/4-stable/ttssh2/ttxssh/ssh.c	2023-02-02 11:43:24 UTC (rev 10559)
@@ -4195,8 +4195,8 @@
 				MessageBox(NULL, buf, "TTSSH: file open error", MB_OK | MB_ICONERROR);
 				goto error;
 			}
-			_snprintf_s(buf, sizeof(buf), _TRUNCATE, "`%s' file exists. (%d)\noverwrite it?", c->scp.localfilefull, GetLastError());
-			dlgresult = MessageBox(NULL, buf, "TTSSH: confirm", MB_YESNO | MB_ICONERROR);
+			_snprintf_s(buf, sizeof(buf), _TRUNCATE, "`%s' file exists.\noverwrite it?", c->scp.localfilefull);
+			dlgresult = MessageBox(NULL, buf, "TTSSH: confirm", MB_YESNO | MB_ICONQUESTION);
 			if (dlgresult == IDNO) {
 				goto error;
 			}


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