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.
This commit is contained in:
parent
4d0b1e3d07
commit
4d7b23069b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue