aboutsummaryrefslogtreecommitdiff
path: root/src/helper/replacements.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper/replacements.c')
-rw-r--r--src/helper/replacements.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/replacements.c b/src/helper/replacements.c
index 86ddd80..81b1976 100644
--- a/src/helper/replacements.c
+++ b/src/helper/replacements.c
@@ -233,7 +233,7 @@ int win_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct time
if (retcode < 0)
retcode = 0;
for (i = 0; i < n_handles; i++) {
- if (WAIT_OBJECT_0 == WaitForSingleObject(handles[i], 0)) {
+ if (WaitForSingleObject(handles[i], 0) == WAIT_OBJECT_0) {
if (SAFE_FD_ISSET(handle_slot_to_fd[i], rfds)) {
DWORD bytes;
intptr_t handle = (intptr_t) _get_osfhandle(