• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision6401 (tree)
Time2016-06-10 14:11:20
Authordoda

Log Message

/I, /S, /V オプションのチェックを厳密にした。
https://osdn.jp/ticket/browse.php?group_id=1412&tid=36342
[Ttssh2-devel 3001]

Change Summary

Incremental Difference

--- trunk/tests/macroparam.bat (nonexistent)
+++ trunk/tests/macroparam.bat (revision 6401)
@@ -0,0 +1,18 @@
1+@echo off
2+
3+set TTMACRO=%~dp0\..\teraterm\Debug\ttpmacro.exe
4+set MACROFILE=%~dpn0.ttl
5+
6+echo == test 1 ==
7+"%TTMACRO%" "%MACROFILE%" /vxx /ixx /v /i test1
8+if ERRORLEVEL 1 echo test 1 failed.
9+
10+echo == test 2 ==
11+"%TTMACRO%" "%MACROFILE%" /v /i test2
12+if ERRORLEVEL 1 echo test 2 failed.
13+
14+echo == test 3 ==
15+"%TTMACRO%" "%MACROFILE%" test3 /vxx /ixx /v /i
16+if ERRORLEVEL 1 echo test 3 failed.
17+
18+pause
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
--- trunk/teraterm/ttpmacro/ttmdlg.cpp (revision 6400)
+++ trunk/teraterm/ttpmacro/ttmdlg.cpp (revision 6401)
@@ -84,13 +84,13 @@
8484 if (_strnicmp(Temp,"/D=",3)==0) { // DDE option
8585 strncpy_s(TopicName, sizeof(TopicName), &Temp[3], _TRUNCATE);
8686 }
87- else if (_strnicmp(Temp,"/I",2)==0) {
87+ else if (_stricmp(Temp, "/I")==0) {
8888 *IOption = TRUE;
8989 }
90- else if (_strnicmp(Temp,"/S",2)==0) {
90+ else if (_stricmp(Temp, "/S")==0) {
9191 SleepFlag = TRUE;
9292 }
93- else if (_strnicmp(Temp,"/V",2)==0) {
93+ else if (_stricmp(Temp, "/V")==0) {
9494 *VOption = TRUE;
9595 }
9696 else {
Show on old repository browser