mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 12:45:16 +00:00
[USBEHCI_NEW]
- Fix warnings - Fix mingw build svn path=/branches/usb-bringup/; revision=51573
This commit is contained in:
parent
c2b34a98be
commit
11ca3bd492
|
@ -2277,7 +2277,6 @@ USBHI_RestoreUsbDevice(
|
|||
{
|
||||
PUSBDEVICE OldUsbDevice, NewUsbDevice;
|
||||
CHubController * Controller;
|
||||
NTSTATUS Status;
|
||||
|
||||
DPRINT1("USBHI_RestoreUsbDevice\n");
|
||||
|
||||
|
@ -2430,8 +2429,11 @@ USBHI_QueryDeviceInformation(
|
|||
//
|
||||
// store result length
|
||||
//
|
||||
#ifdef _MSC_VER
|
||||
*LengthReturned = FIELD_OFFSET(USB_DEVICE_INFORMATION_0, PipeList[DeviceInfo->NumberOfOpenPipes]);
|
||||
|
||||
#else
|
||||
*LengthReturned = sizeof(USB_DEVICE_INFORMATION_0) + (DeviceInfo->NumberOfOpenPipes > 1 ? (DeviceInfo->NumberOfOpenPipes - 1) * sizeof(USB_PIPE_INFORMATION_0) : 0);
|
||||
#endif
|
||||
//
|
||||
// done
|
||||
//
|
||||
|
|
|
@ -177,6 +177,7 @@ CUSBQueue::AddUSBRequest(
|
|||
default:
|
||||
/* BUG */
|
||||
PC_ASSERT(FALSE);
|
||||
Status = STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue