diff options
Diffstat (limited to 'MdeModulePkg/Bus/Usb/UsbBusDxe')
-rw-r--r-- | MdeModulePkg/Bus/Usb/UsbBusDxe/UsbDesc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbDesc.c b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbDesc.c index 81f78cb0f7..cb892e3ebc 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbDesc.c +++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbDesc.c @@ -197,12 +197,12 @@ UsbCreateDesc ( return NULL;
}
- Desc = AllocateZeroPool (CtrlLen);
+ Desc = AllocateZeroPool ((UINTN) CtrlLen);
if (Desc == NULL) {
return NULL;
}
- CopyMem (Desc, Head, DescLen);
+ CopyMem (Desc, Head, (UINTN) DescLen);
*Consumed = Offset + Head->Len;
|