From 8c339050acbaf0a02012f7d39d0aa0f745727cd9 Mon Sep 17 00:00:00 2001 From: "Ithamar R. Adema" Date: Sun, 22 Feb 2009 12:58:24 +0000 Subject: [PATCH] Complete my previous fix :$ git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29281 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/device/USBInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/device/USBInterface.cpp b/src/kits/device/USBInterface.cpp index f9497c655f..4d32cf3904 100644 --- a/src/kits/device/USBInterface.cpp +++ b/src/kits/device/USBInterface.cpp @@ -127,7 +127,7 @@ status_t BUSBInterface::OtherDescriptorAt(uint32 index, usb_descriptor *descriptor, size_t length) const { - if (length <= 0 && descriptor == NULL) + if (length <= 0 || descriptor == NULL) return B_BAD_VALUE; usb_raw_command command;