Browse Subversion Repository
Diff of /trunk/teraterm/teraterm/filesys_log.cpp
Parent Directory
| Revision Log
| Patch
| 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 |
| 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 |
|
|
| |