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:
vanjeff 2007-07-12 02:14:05 +00:00
parent e10faeabb4
commit e61d30b02a
2 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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