[msvc] Update csproj files
[mono.git] / mono / utils / mono-poll.c
index 74d39ced0c0292f1c365af67aa5ad8fc8351e9a0..f759b68b4b2ab98387f5470b1f11f17cec454798 100755 (executable)
@@ -1,3 +1,7 @@
+/**
+ * \file
+ */
+
 #include <config.h>
 
 #ifdef HOST_WIN32
@@ -60,7 +64,7 @@ mono_poll (mono_pollfd *ufds, unsigned int nfds, int timeout)
                        return 1;
                }
 #else
-               if (fd > FD_SETSIZE) {
+               if (fd >= FD_SETSIZE) {
                        ufds [i].revents = MONO_POLLNVAL;
                        return 1;
                }