summaryrefslogtreecommitdiff
path: root/ace/OS.i
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-17 06:22:55 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-17 06:22:55 +0000
commitf4e3b0c53e851515b4137f499307c444a3d32be4 (patch)
tree1dca7b385040d1cf5f9bd58295c58a7db9a36ace /ace/OS.i
parent2d733bee882d6fc5be40920bc6e6dabab9830e63 (diff)
downloadATCD-f4e3b0c53e851515b4137f499307c444a3d32be4.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/OS.i')
-rw-r--r--ace/OS.i12
1 files changed, 6 insertions, 6 deletions
diff --git a/ace/OS.i b/ace/OS.i
index 3804a6f4cc6..58f5a4c8ecb 100644
--- a/ace/OS.i
+++ b/ace/OS.i
@@ -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