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 2602 by maya, Fri Oct 31 23:45:27 2008 UTC revision 2635 by maya, Wed Jan 21 04:12:28 2009 UTC
# Line 330  void FixLogOption() Line 330  void FixLogOption()
330  }  }
331    
332  extern "C" {  extern "C" {
333  void LogStart()  BOOL LogStart()
334  {  {
335          LONG Option;          LONG Option;
336          char *logdir;          char *logdir;
337    
338          if ((FileLog) || (BinLog)) return;          if ((FileLog) || (BinLog)) return FALSE;
339    
340          if (! LoadTTFILE()) return;          if (! LoadTTFILE()) return FALSE;
341          if (! NewFileVar(&LogVar))          if (! NewFileVar(&LogVar))
342          {          {
343                  FreeTTFILE();                  FreeTTFILE();
344                  return;                  return FALSE;
345          }          }
346          LogVar->OpId = OpLog;          LogVar->OpId = OpLog;
347    
# Line 384  void LogStart() Line 384  void LogStart()
384                  {                  {
385                          FreeFileVar(&LogVar);                          FreeFileVar(&LogVar);
386                          FreeTTFILE();                          FreeTTFILE();
387                          return;                          return FALSE;
388                  }                  }
389                  ts.TransBin = LOWORD(Option);                  ts.TransBin = LOWORD(Option);
390                  ts.Append = HIWORD(Option);                  ts.Append = HIWORD(Option);
# Line 437  void LogStart() Line 437  void LogStart()
437                  if (! CreateBinBuf())                  if (! CreateBinBuf())
438                  {                  {
439                          FileTransEnd(OpLog);                          FileTransEnd(OpLog);
440                          return;                          return FALSE;
441                  }                  }
442          }          }
443          else {          else {
# Line 446  void LogStart() Line 446  void LogStart()
446                  if (! CreateLogBuf())                  if (! CreateLogBuf())
447                  {                  {
448                          FileTransEnd(OpLog);                          FileTransEnd(OpLog);
449                          return;                          return FALSE;
450                  }                  }
451          }          }
452          cv.LStart = cv.LogPtr;          cv.LStart = cv.LogPtr;
# Line 486  void LogStart() Line 486  void LogStart()
486                  }                  }
487    
488                  FileTransEnd(OpLog);                  FileTransEnd(OpLog);
489                  return;                  return FALSE;
490          }          }
491          LogVar->ByteCount = 0;          LogVar->ByteCount = 0;
492    
493          if (! OpenFTDlg(LogVar))          if (! OpenFTDlg(LogVar)) {
494                  FileTransEnd(OpLog);                  FileTransEnd(OpLog);
495                    return FALSE;
496            }
497    
498            return TRUE;
499  }  }
500  }  }
501    

Legend:
Removed from v.2602  
changed lines
  Added in v.2635

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