summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-08-11 19:34:42 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-08-11 19:34:42 +0000
commitb6b669c15decc52c476fc48e7fe736dc78a7636d (patch)
tree7f5e5b3d8a12e8aa668a3ddd510ec2c147343abf /ace
parent6b4ff6659c8084d0bf33846169309ae8d434a09e (diff)
downloadATCD-b6b669c15decc52c476fc48e7fe736dc78a7636d.tar.gz
Made fopen returns the correct error on CE.
Diffstat (limited to 'ace')
-rw-r--r--ace/OS.i5
1 files changed, 4 insertions, 1 deletions
diff --git a/ace/OS.i b/ace/OS.i
index 4537b109ce8..82b91b1503b 100644
--- a/ace/OS.i
+++ b/ace/OS.i
@@ -9350,7 +9350,10 @@ ACE_OS::fopen (const wchar_t *filename, const wchar_t *mode)
FILE_ATTRIBUTE_NORMAL,
NULL);
if (retv == INVALID_HANDLE_VALUE)
- errno = ::GetLastError ();
+ {
+ errno = ::GetLastError ();
+ retv = 0;
+ }
// Move the file pointer to EOF if we are opening the file in append mode.
else if (creation == OPEN_ALWAYS)
{