Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
filename_start = library_path + length;
// Append '\' + name + ".dll" + NUL
- length += 1 + strlen(name) + 4 + 1;
+ length += 1 + (UINT)strlen(name) + 4 + 1;
if (length >= (UINT)sizeof(library_path)) {
usbi_err(ctx, "program assertion failed - library path buffer overflow");
return NULL;
config_desc_length = ROOT_HUB_FS_CONFIG_DESC_LENGTH;
ep_interval = 0xff; // 255ms
break;
+ default: // Impossible, buts keeps compiler happy
+ usbi_err(ctx, "program assertion failed - unknown root hub speed");
+ return LIBUSB_ERROR_INVALID_PARAM;
}
if (speed >= LIBUSB_SPEED_SUPER) {
-#define LIBUSB_NANO 11579
+#define LIBUSB_NANO 11580