• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision6895 (tree)
Time2017-08-09 22:22:24
Authordoda

Log Message

パイプが使用中の場合のメッセージを追加。

COM ポートが他で使用中の時は ERROR_ACCESS_DENIED になるっぽい。

Change Summary

Incremental Difference

--- trunk/teraterm/teraterm/commlib.c (revision 6894)
+++ trunk/teraterm/teraterm/commlib.c (revision 6895)
@@ -543,6 +543,10 @@
543543 get_lang_msg("MSG_CANTOPEN_ERROR_DENIED", ts->UIMsg, sizeof(ts->UIMsg), "Cannot open %s. Access denied.", ts->UILanguageFile);
544544 _snprintf_s(ErrMsg, sizeof(ErrMsg), _TRUNCATE, ts->UIMsg, P);
545545 break;
546+ case ERROR_PIPE_BUSY:
547+ get_lang_msg("MSG_CANTOPEN_ERROR_PIPEBUSY", ts->UIMsg, sizeof(ts->UIMsg), "Cannot open %s. Pipe is busy.", ts->UILanguageFile);
548+ _snprintf_s(ErrMsg, sizeof(ErrMsg), _TRUNCATE, ts->UIMsg, P);
549+ break;
546550 default:
547551 get_lang_msg("MSG_CANTOPEN_ERROR", ts->UIMsg, sizeof(ts->UIMsg), "Cannot open %s. (0x%08x)", ts->UILanguageFile);
548552 _snprintf_s(ErrMsg, sizeof(ErrMsg), _TRUNCATE, ts->UIMsg, P, err);
Show on old repository browser