diff --git a/nx/source/runtime/devices/socket.c b/nx/source/runtime/devices/socket.c index d7b28bc6..d76b9d27 100644 --- a/nx/source/runtime/devices/socket.c +++ b/nx/source/runtime/devices/socket.c @@ -544,7 +544,7 @@ int ioctl(int fd, int request, ...) { return -1; } - fd = request != FIONBIO ? _socketGetFd(fd) : fd; + fd = request == FIONBIO ? _socketGetFd(fd) : fd; if(fd == -1) return -1;