stoddard 99/10/20 17:31:12
Modified: src/lib/apr/file_io/win32 open.c Log: Return Win32 failure status Revision Changes Path 1.9 +4 -7 apache-2.0/src/lib/apr/file_io/win32/open.c Index: open.c =================================================================== RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/win32/open.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- open.c 1999/10/20 17:31:12 1.8 +++ open.c 1999/10/21 00:31:09 1.9 @@ -67,14 +67,11 @@ ap_status_t file_cleanup(void *thefile) { struct file_t *file = thefile; - if (CloseHandle(file->filehand)) { - file->filehand = INVALID_HANDLE_VALUE; - return APR_SUCCESS; + if (!CloseHandle(file->filehand)) { + return GetLastError(); } - else { - return APR_EEXIST; - /* Are there any error conditions other than EINTR or EBADF? */ - } + file->filehand = INVALID_HANDLE_VALUE; + return APR_SUCCESS; } ap_status_t ap_open(struct file_t **dafile, const char *fname,