Revision: 8946 https://osdn.net/projects/ttssh2/scm/svn/commits/8946 Author: zmatsuo Date: 2020-10-03 00:46:01 +0900 (Sat, 03 Oct 2020) Log Message: ----------- _lcreat() のエラーチェックを正しくした Modified Paths: -------------- trunk/teraterm/ttpfile/ftlib.c -------------- next part -------------- Modified: trunk/teraterm/ttpfile/ftlib.c =================================================================== --- trunk/teraterm/ttpfile/ftlib.c 2020-10-02 15:45:51 UTC (rev 8945) +++ trunk/teraterm/ttpfile/ftlib.c 2020-10-02 15:46:01 UTC (rev 8946) @@ -205,7 +205,7 @@ strncpy_s(fv->FullName, sizeof(fv->FullName),Temp, _TRUNCATE); } fv->FileHandle = _lcreat(fv->FullName,0); - fv->FileOpen = fv->FileHandle>0; + fv->FileOpen = (fv->FileHandle != INVALID_HANDLE_VALUE); if (! fv->FileOpen && ! fv->NoMsg) MessageBox(fv->HMainWin,"Cannot create file", "Tera Term: Error",MB_ICONEXCLAMATION);