Revision: 8050 https://osdn.net/projects/ttssh2/scm/svn/commits/8050 Author: maya Date: 2019-08-31 11:52:08 +0900 (Sat, 31 Aug 2019) Log Message: ----------- _popen() はパイプさえ開ければコマンドが起動できなくてもエラーにならないようなので、コマンドの結果文字列が帰って来たかどうかの判定を追加 Modified Paths: -------------- trunk/teraterm/svnrev/svnrev.cpp -------------- next part -------------- Modified: trunk/teraterm/svnrev/svnrev.cpp =================================================================== --- trunk/teraterm/svnrev/svnrev.cpp 2019-08-31 02:48:18 UTC (rev 8049) +++ trunk/teraterm/svnrev/svnrev.cpp 2019-08-31 02:52:08 UTC (rev 8050) @@ -73,6 +73,10 @@ revision = atoi(result); _pclose(fp); + if (strlen(result) == 0) { + return -1; + } + if (revision == 0) { revision = -1; }