mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-25 14:44:28 +02:00
fixed memcpy link issue.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3203 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
e10faeabb4
commit
e61d30b02a
@ -120,7 +120,12 @@ UsbCreateInterface (
|
|||||||
UsbIf->Device = Device;
|
UsbIf->Device = Device;
|
||||||
UsbIf->IfDesc = IfDesc;
|
UsbIf->IfDesc = IfDesc;
|
||||||
UsbIf->IfSetting = IfDesc->Settings[IfDesc->ActiveIndex];
|
UsbIf->IfSetting = IfDesc->Settings[IfDesc->ActiveIndex];
|
||||||
UsbIf->UsbIo = mUsbIoProtocol;
|
|
||||||
|
CopyMem (
|
||||||
|
&(UsbIf->UsbIo),
|
||||||
|
&mUsbIoProtocol,
|
||||||
|
sizeof (EFI_USB_IO_PROTOCOL)
|
||||||
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Install protocols for USBIO and device path
|
// Install protocols for USBIO and device path
|
||||||
|
@ -626,7 +626,12 @@ UsbBootDetectMedia (
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
Media = &UsbMass->BlockIoMedia;
|
Media = &UsbMass->BlockIoMedia;
|
||||||
OldMedia = UsbMass->BlockIoMedia;
|
|
||||||
|
CopyMem (
|
||||||
|
&OldMedia,
|
||||||
|
&(UsbMass->BlockIoMedia),
|
||||||
|
sizeof (EFI_BLOCK_IO_MEDIA)
|
||||||
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
// First test whether the device is ready and get status
|
// First test whether the device is ready and get status
|
||||||
|
Loading…
x
Reference in New Issue
Block a user