From 4d7b23069b33fcd0ceaeac4c12a8e339fdc0a4c2 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Tue, 29 Aug 2006 21:11:28 +0100 Subject: [PATCH] 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. --- server/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/file.c b/server/file.c index b315425be5d..0f900192cec 100644 --- a/server/file.c +++ b/server/file.c @@ -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;