fix a bug in RegisterListenFD

This commit is contained in:
Vincent Wei
2020-08-10 11:07:50 +08:00
parent bebe28b95c
commit f41180d025
+5 -2
View File
@@ -213,8 +213,11 @@ BOOL GUIAPI RegisterListenFD (int fd, int type, HWND hwnd, void* context)
}
}
if (ok && msg_queue->maxfd < fd) {
msg_queue->maxfd = fd;
if (ok) {
if (msg_queue->maxfd < fd) {
msg_queue->maxfd = fd;
}
return TRUE;
}
}