mirror of https://github.com/acidanthera/audk.git
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->IfDesc = IfDesc;
|
||||
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
|
||||
|
|
|
@ -626,7 +626,12 @@ UsbBootDetectMedia (
|
|||
EFI_STATUS Status;
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue