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 3904 by doda, Sat May 22 06:57:02 2010 UTC revision 4328 by maya, Sun Feb 20 05:38:34 2011 UTC
# Line 479  BOOL LogStart() Line 479  BOOL LogStart()
479    
480          if (ts.Append > 0)          if (ts.Append > 0)
481          {          {
482                  LogVar->FileHandle = _lopen(LogVar->FullName,OF_WRITE);                  LogVar->FileHandle = (int)CreateFile(LogVar->FullName, GENERIC_WRITE, FILE_SHARE_READ, NULL,
483                                                         OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
484                  if (LogVar->FileHandle>0){                  if (LogVar->FileHandle>0){
485                          _llseek(LogVar->FileHandle,0,2);                          _llseek(LogVar->FileHandle,0,2);
486                          /* 2007.05.24 Gentaro                          /* 2007.05.24 Gentaro
# Line 488  BOOL LogStart() Line 489  BOOL LogStart()
489                          */                          */
490                          eLineEnd = Line_FileHead;                          eLineEnd = Line_FileHead;
491                  }                  }
                 else  
                         LogVar->FileHandle = _lcreat(LogVar->FullName,0);  
492          }          }
493          else          else {
494                  LogVar->FileHandle = _lcreat(LogVar->FullName,0);                  LogVar->FileHandle = (int)CreateFile(LogVar->FullName, GENERIC_WRITE, FILE_SHARE_READ, NULL,
495                                                         CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
496            }
497          LogVar->FileOpen = (LogVar->FileHandle>0);          LogVar->FileOpen = (LogVar->FileHandle>0);
498          if (! LogVar->FileOpen)          if (! LogVar->FileOpen)
499          {          {

Legend:
Removed from v.3904  
changed lines
  Added in v.4328

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