From 70cd9e017d6cdbdbbd94ab2d2cdc558825ac4a79 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Thu, 14 Jun 2018 00:43:54 +0100 Subject: [PATCH] fix ioctl --- nx/source/runtime/devices/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;