modify the implementation of GetInterface and GetConfiguration to force the high byte of output type parameters zero.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8447 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -177,6 +177,8 @@ UsbGetInterface (
|
|||||||
ASSERT (AlternateSetting != NULL);
|
ASSERT (AlternateSetting != NULL);
|
||||||
ASSERT (Status != NULL);
|
ASSERT (Status != NULL);
|
||||||
|
|
||||||
|
*AlternateSetting = 0;
|
||||||
|
|
||||||
ZeroMem (&DevReq, sizeof (EFI_USB_DEVICE_REQUEST));
|
ZeroMem (&DevReq, sizeof (EFI_USB_DEVICE_REQUEST));
|
||||||
|
|
||||||
DevReq.RequestType = USB_DEV_GET_INTERFACE_REQ_TYPE;
|
DevReq.RequestType = USB_DEV_GET_INTERFACE_REQ_TYPE;
|
||||||
@@ -283,6 +285,8 @@ UsbGetConfiguration (
|
|||||||
ASSERT (ConfigurationValue != NULL);
|
ASSERT (ConfigurationValue != NULL);
|
||||||
ASSERT (Status != NULL);
|
ASSERT (Status != NULL);
|
||||||
|
|
||||||
|
*ConfigurationValue = 0;
|
||||||
|
|
||||||
ZeroMem (&DevReq, sizeof (EFI_USB_DEVICE_REQUEST));
|
ZeroMem (&DevReq, sizeof (EFI_USB_DEVICE_REQUEST));
|
||||||
|
|
||||||
DevReq.RequestType = USB_DEV_GET_CONFIGURATION_REQ_TYPE;
|
DevReq.RequestType = USB_DEV_GET_CONFIGURATION_REQ_TYPE;
|
||||||
|
Reference in New Issue
Block a user