diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-08-11 19:34:42 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-08-11 19:34:42 +0000 |
commit | b6b669c15decc52c476fc48e7fe736dc78a7636d (patch) | |
tree | 7f5e5b3d8a12e8aa668a3ddd510ec2c147343abf /ace | |
parent | 6b4ff6659c8084d0bf33846169309ae8d434a09e (diff) | |
download | ATCD-b6b669c15decc52c476fc48e7fe736dc78a7636d.tar.gz |
Made fopen returns the correct error on CE.
Diffstat (limited to 'ace')
-rw-r--r-- | ace/OS.i | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) { |