• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision7242 (tree)
Time2018-09-15 13:56:26
Authorzmatsuo

Log Message

'/'をパスセパレーターとして認識するようにした

Change Summary

Incremental Difference

--- trunk/teraterm/common/ttlib.c (revision 7241)
+++ trunk/teraterm/common/ttlib.c (revision 7242)
@@ -224,7 +224,7 @@
224224 Ptr = &PathName[2];
225225 else
226226 Ptr = PathName;
227- if (Ptr[0]=='\\')
227+ if (Ptr[0]=='\\' || Ptr[0]=='/')
228228 Ptr = CharNext(Ptr);
229229
230230 DirPtr = Ptr;
@@ -236,6 +236,7 @@
236236 switch (b) {
237237 case ':':
238238 return FALSE;
239+ case '/': /* FALLTHROUGH */
239240 case '\\':
240241 DirPtr = PtrOld;
241242 FNPtr = Ptr;
--- trunk/teraterm/ttpfile/ttfile.c (revision 7241)
+++ trunk/teraterm/ttpfile/ttfile.c (revision 7242)
@@ -50,6 +50,7 @@
5050 #include <stdlib.h>
5151 #include <stdio.h>
5252 #include <io.h>
53+#include <assert.h>
5354
5455 #include "compat_w95.h"
5556
@@ -161,6 +162,14 @@
161162 break;
162163 }
163164
165+#if defined(_DEBUG)
166+ if (!Ok) {
167+ DWORD Err = GetLastError();
168+ DWORD DlgErr = CommDlgExtendedError();
169+ assert(Err == 0 && DlgErr == 0);
170+ }
171+#endif
172+
164173 /* restore dir */
165174 _chdir(TempDir);
166175
Show on old repository browser