diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-09-17 06:22:55 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-09-17 06:22:55 +0000 |
commit | f4e3b0c53e851515b4137f499307c444a3d32be4 (patch) | |
tree | 1dca7b385040d1cf5f9bd58295c58a7db9a36ace /ace/OS.i | |
parent | 2d733bee882d6fc5be40920bc6e6dabab9830e63 (diff) | |
download | ATCD-f4e3b0c53e851515b4137f499307c444a3d32be4.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/OS.i')
-rw-r--r-- | ace/OS.i | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -7850,10 +7850,7 @@ ACE_OS::open (const char *filename, ACE_FAIL_RETURN (h); if (ACE_BIT_ENABLED (mode, _O_APPEND)) - { - long fsize = ACE_OS::filesize (h); - ::SetFilePointer (h, 0, 0, FILE_END); - } + ::SetFilePointer (h, 0, 0, FILE_END); return h; #else @@ -9664,8 +9661,11 @@ ACE_OS::open (const wchar_t *filename, if (h == ACE_INVALID_HANDLE) ACE_FAIL_RETURN (h); - else - return h; + + if (ACE_BIT_ENABLED (mode, _O_APPEND)) + ::SetFilePointer (h, 0, 0, FILE_END); + + return h; } ACE_INLINE int |