Revision: 10560 https://osdn.net/projects/ttssh2/scm/svn/commits/10560 Author: nmaya Date: 2023-02-02 20:44:19 +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: -------------- trunk/ttssh2/ttxssh/ssh.c -------------- next part -------------- Modified: trunk/ttssh2/ttxssh/ssh.c =================================================================== --- trunk/ttssh2/ttxssh/ssh.c 2023-02-02 11:43:24 UTC (rev 10559) +++ trunk/ttssh2/ttxssh/ssh.c 2023-02-02 11:44:19 UTC (rev 10560) @@ -4290,8 +4290,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; }