summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-03-17 14:57:54 +0000
committerPete Batard <pbatard@gmail.com>2010-03-17 14:57:54 +0000
commit070d871037eebc8de42b8bb855ae232f1c997f83 (patch)
tree01e14f2c06c49aef0b20bd5ba5ef9e23c1ba9010
parentccc8239a84ac34627947d64c419775e43c91bbf4 (diff)
downloadlibusb-070d871037eebc8de42b8bb855ae232f1c997f83.tar.gz
fixed typos in windows_usb.c (Graeme Gill)
-rw-r--r--libusb/os/windows_usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c
index 8bd1344..0cec76a 100644
--- a/libusb/os/windows_usb.c
+++ b/libusb/os/windows_usb.c
@@ -1831,7 +1831,7 @@ static int windows_cancel_transfer(struct usbi_transfer *itransfer)
struct windows_transfer_priv *transfer_priv = usbi_transfer_get_os_priv(itransfer);
// Forces instant overlapped completion on timeouts - use at your own risks
- if (itransfer->flags | USBI_TRANSFER_TIMED_OUT) {
+ if (itransfer->flags & USBI_TRANSFER_TIMED_OUT) {
transfer_priv->pollable_fd.overlapped->Internal &= ~STATUS_PENDING;
}
#endif
@@ -1869,7 +1869,7 @@ static void windows_transfer_callback(struct usbi_transfer *itransfer, uint32_t
status = LIBUSB_TRANSFER_TIMED_OUT;
break;
case ERROR_OPERATION_ABORTED:
- if (itransfer->flags | USBI_TRANSFER_TIMED_OUT) {
+ if (itransfer->flags & USBI_TRANSFER_TIMED_OUT) {
usbi_dbg("detected timeout");
status = LIBUSB_TRANSFER_TIMED_OUT;
} else {