Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/teraterm/teraterm/filesys_log.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 9709 by nmaya, Sun Jan 30 14:06:34 2022 UTC revision 9714 by nmaya, Tue Feb 1 12:30:09 2022 UTC
# Line 1344  BOOL FLogOpenDialog(HINSTANCE hInst, HWN Line 1344  BOOL FLogOpenDialog(HINSTANCE hInst, HWN
1344   */   */
1345  wchar_t *FLogGetLogFilename(const wchar_t *log_filename)  wchar_t *FLogGetLogFilename(const wchar_t *log_filename)
1346  {  {
1347          const char *logdir;          char *logdir;
1348    
1349          if (strlen(ts.LogDefaultPath) > 0) {          if (strlen(ts.LogDefaultPath) > 0) {
1350                  logdir = ts.LogDefaultPath;                  logdir = strdup(ts.LogDefaultPath);
1351          }          }
1352          else {          else {
1353                  logdir = ToCharW(ts.LogDirW);                  logdir = ToCharW(ts.LogDirW);
# Line 1370  wchar_t *FLogGetLogFilename(const wchar_ Line 1370  wchar_t *FLogGetLogFilename(const wchar_
1370          ParseStrftimeFileName(full_path, sizeof(full_path));          ParseStrftimeFileName(full_path, sizeof(full_path));
1371          ConvertLogname(full_path, sizeof(full_path));          ConvertLogname(full_path, sizeof(full_path));
1372    
1373            free(logdir);
1374          return ToWcharA(full_path);          return ToWcharA(full_path);
1375  }  }
1376    

Legend:
Removed from v.9709  
changed lines
  Added in v.9714

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26