mirror of
https://github.com/RPCS3/libusb.git
synced 2026-07-21 00:16:04 -04:00
Windows: Fix broken WDK compilation
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
committed by
Hans de Goede
parent
f51b19db34
commit
c35629939b
+4
-4
@@ -336,7 +336,7 @@ static int parse_interface(libusb_context *ctx,
|
||||
if (r < 0)
|
||||
goto err;
|
||||
if (r == 0) {
|
||||
ifp->bNumEndpoints = i;
|
||||
ifp->bNumEndpoints = (uint8_t)i;
|
||||
break;;
|
||||
}
|
||||
|
||||
@@ -442,7 +442,7 @@ static int parse_configuration(struct libusb_context *ctx,
|
||||
usbi_warn(ctx,
|
||||
"short extra config desc read %d/%d",
|
||||
size, header.bLength);
|
||||
config->bNumInterfaces = i;
|
||||
config->bNumInterfaces = (uint8_t)i;
|
||||
return size;
|
||||
}
|
||||
|
||||
@@ -479,7 +479,7 @@ static int parse_configuration(struct libusb_context *ctx,
|
||||
if (r < 0)
|
||||
goto err;
|
||||
if (r == 0) {
|
||||
config->bNumInterfaces = i;
|
||||
config->bNumInterfaces = (uint8_t)i;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -877,7 +877,7 @@ static int parse_bos(struct libusb_context *ctx,
|
||||
buffer += dev_cap.bLength;
|
||||
size -= dev_cap.bLength;
|
||||
}
|
||||
_bos->bNumDeviceCaps = i;
|
||||
_bos->bNumDeviceCaps = (uint8_t)i;
|
||||
*bos = _bos;
|
||||
|
||||
return LIBUSB_SUCCESS;
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define LIBUSB_NANO 10727
|
||||
#define LIBUSB_NANO 10728
|
||||
|
||||
Reference in New Issue
Block a user