#include "usbccgp.h"
+#include <ntddk.h>
+
#define NDEBUG
#include <debug.h>
//
// FIXME use GenericCompositeUSBDeviceString
//
- UNIMPLEMENTED
+ UNIMPLEMENTED;
Buffer = AllocateItem(PagedPool, (wcslen(GenericString) + 1) * sizeof(WCHAR));
if (!Buffer)
{
return STATUS_SUCCESS;
}
+ //
+ // if there is no configuration descriptor, unconfigure the device
+ //
+ if (Urb->UrbSelectConfiguration.ConfigurationDescriptor == NULL)
+ {
+ return STATUS_SUCCESS;
+ }
+
// sanity checks
//C_ASSERT(sizeof(struct _URB_HEADER) == 16);
//C_ASSERT(FIELD_OFFSET(struct _URB_SELECT_CONFIGURATION, Interface.Length) == 24);
// invalid parameter
//
DPRINT1("InterfaceInformation InterfaceNumber %x Alternative %x NumberOfPipes %x not found\n", InterfaceInformation->InterfaceNumber, InterfaceInformation->AlternateSetting, InterfaceInformation->NumberOfPipes);
- ASSERT(FALSE);
return STATUS_INVALID_PARAMETER;
}