IOS: Fix "kernel FD table full" error code

This commit is contained in:
Léo Lam 2018-02-28 19:49:05 +01:00
parent d029f2a7b6
commit a63aaeecee
1 changed files with 1 additions and 1 deletions

View File

@ -475,7 +475,7 @@ IPCCommandResult Kernel::OpenDevice(OpenRequest& request)
if (new_fd < 0 || new_fd >= IPC_MAX_FDS) if (new_fd < 0 || new_fd >= IPC_MAX_FDS)
{ {
ERROR_LOG(IOS, "Couldn't get a free fd, too many open files"); ERROR_LOG(IOS, "Couldn't get a free fd, too many open files");
return IPCCommandResult{FS_EFDEXHAUSTED, true, 5000 * SystemTimers::TIMER_RATIO}; return IPCCommandResult{IPC_EMAX, true, 5000 * SystemTimers::TIMER_RATIO};
} }
request.fd = new_fd; request.fd = new_fd;