diff options
author | Pete Batard <pbatard@gmail.com> | 2010-02-25 22:45:55 +0000 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-02-25 22:45:55 +0000 |
commit | fceedd4d307ecc89580aac9d8446e3e903e2ef5a (patch) | |
tree | 0438819e2278da86139704a53c15baf8eed9d153 /libusb/os | |
parent | cd5200d62b26d33a94ef9ad856707c44bd6cf192 (diff) | |
download | libusb-fceedd4d307ecc89580aac9d8446e3e903e2ef5a.tar.gz |
fixed missing brackets that prevented DYNAMIC_FDS from working properlyr178
Diffstat (limited to 'libusb/os')
-rw-r--r-- | libusb/os/windows_compat.c | 13 |
1 files 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]; |