mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
git-svn-id: svn://ultimatepp.org/upp/trunk@330 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
af712dddc9
commit
2d10cf466b
90 changed files with 10802 additions and 9912 deletions
|
|
@ -113,7 +113,7 @@ void LogStream::Create(const char *path, bool append)
|
|||
if(append)
|
||||
filesize = (int)SetFilePointer(hfile, 0, NULL, FILE_END);
|
||||
#else
|
||||
hfile = open(filename, append ? O_CREAT|O_RDWR : O_CREAT|O_RDWR|O_TRUNC, 0644);
|
||||
hfile = open(filename, append ? O_CREAT|O_RDWR|O_APPEND : O_CREAT|O_RDWR|O_TRUNC, 0644);
|
||||
if(append)
|
||||
filesize = (int)lseek(hfile, 0, SEEK_END);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue