summaryrefslogtreecommitdiff
path: root/ace/OS_NS_stdio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/OS_NS_stdio.cpp')
-rw-r--r--ace/OS_NS_stdio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ace/OS_NS_stdio.cpp b/ace/OS_NS_stdio.cpp
index d3d0cd4c751..1d6c6ccffc2 100644
--- a/ace/OS_NS_stdio.cpp
+++ b/ace/OS_NS_stdio.cpp
@@ -132,9 +132,9 @@ ACE_OS::fopen (const char *filename,
hmode &= _O_TEXT | _O_RDONLY | _O_APPEND;
# if defined (ACE_LACKS_INTPTR_T)
- int fd = ::_open_osfhandle (long (handle), 0);
+ int fd = ::_open_osfhandle (long (handle), hmode);
# else
- int fd = ::_open_osfhandle (intptr_t (handle), 0);
+ int fd = ::_open_osfhandle (intptr_t (handle), hmode);
# endif
if (fd != -1)