Commit 4d7b2306 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

server: Translate errnos ENFILE and EMFILE to STATUS_TOO_MANY_OPENED_FILES,

which seems to be more appropriate and matches the errno translation in ntdll.
parent 4d0b1e3d
......@@ -291,7 +291,7 @@ void file_set_error(void)
case ENOENT: set_error( STATUS_NO_SUCH_FILE ); break;
case EISDIR: set_error( STATUS_FILE_IS_A_DIRECTORY ); break;
case ENFILE:
case EMFILE: set_error( STATUS_NO_MORE_FILES ); break;
case EMFILE: set_error( STATUS_TOO_MANY_OPENED_FILES ); break;
case EEXIST: set_error( STATUS_OBJECT_NAME_COLLISION ); break;
case EINVAL: set_error( STATUS_INVALID_PARAMETER ); break;
case ESPIPE: set_win32_error( ERROR_SEEK ); break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment