USB: On Windows, assume G_IO_IN for the event mask

This commit is contained in:
Daniel Elstner 2015-09-07 08:50:29 +02:00
parent 3a1a6d6b04
commit 1b0c6b6d15
1 changed files with 4 additions and 0 deletions

View File

@ -214,7 +214,11 @@ SR_PRIV int usb_source_add(struct sr_session *session, struct sr_context *ctx,
#else
pollfds[i].fd = lupfd[i]->fd;
#endif
#ifdef G_OS_WIN32
pollfds[i].events = G_IO_IN;
#else
pollfds[i].events = lupfd[i]->events;
#endif
pollfds[i].revents = 0;
}
free(lupfd);