From fceedd4d307ecc89580aac9d8446e3e903e2ef5a Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Thu, 25 Feb 2010 22:45:55 +0000 Subject: fixed missing brackets that prevented DYNAMIC_FDS from working properly --- libusb/os/windows_compat.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/libusb/os/windows_compat.c b/libusb/os/windows_compat.c index 848f837..d7db3c4 100644 --- a/libusb/os/windows_compat.c +++ b/libusb/os/windows_compat.c @@ -721,12 +721,13 @@ int usbi_poll(struct pollfd *fds, unsigned int nfds, int timeout) object_index = ret-WAIT_OBJECT_0; if ((object_index >= 0) && ((DWORD)object_index < nb_handles_to_wait_on)) { #if defined(DYNAMIC_FDS) - if ((DWORD)object_index == nb_handles_to_wait_on) - // Detected fd update while we were waiting - // => flag a poll interruption - errno = EINTR; - triggered = -1; - goto poll_exit; + if ((DWORD)object_index == nb_handles_to_wait_on) { + // Detected fd update while we were waiting + // => flag a poll interruption + errno = EINTR; + triggered = -1; + goto poll_exit; + } #endif printb(" completed after wait\n"); i = handle_to_index[object_index]; -- cgit v1.2.1