+ for (i = 0; i < windrvrfds_count; i++) {
+ if (fd == windrvrfds[i] && windrvrfds[i] >= 0) {
+ int remaining = windrvrfds_count - (i + 1);
+ DPRINTF("close windrvr6 (%d)\n", i);
+ if (remaining)
+ memmove(&(windrvrfds[i]), &(windrvrfds[i+1]), remaining * sizeof(int));
+ windrvrfds = realloc(windrvrfds, sizeof(int) * --windrvrfds_count);
+ if (!windrvrfds_count)
+ windrvrfds = NULL;
+ break;
+ }