We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f07098a commit c48f1cfCopy full SHA for c48f1cf
sdk/lib/drivers/libusb/hub_controller.cpp
@@ -568,7 +568,8 @@ CHubController::HandlePnp(
568
break;
569
}
570
571
- Status = STATUS_SUCCESS;
+ // Here we should leave Status as is.
572
+ Status = Irp->IoStatus.Status;
573
574
575
case IRP_MN_QUERY_CAPABILITIES:
@@ -611,6 +612,14 @@ CHubController::HandlePnp(
611
612
// handle device interface requests
613
//
614
Status = HandleQueryInterface(IoStack);
615
+
616
+ //
617
+ // If a bus driver does not export the requested interface, it
618
+ // should leave Status as is.
619
620
+ if (Status == STATUS_NOT_SUPPORTED)
621
622
623
624
625
case IRP_MN_REMOVE_DEVICE:
0 commit comments