mirror of https://github.com/acidanthera/audk.git
Using CopyMem service to replace the "while" loop for the memory copy
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3567 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
65ddc26edc
commit
31528f0c9c
|
@ -55,9 +55,7 @@ Returns:
|
||||||
Destination8 = Buffer;
|
Destination8 = Buffer;
|
||||||
Source8 = (CHAR8 *) ((UINTN) FileHandle + FileOffset);
|
Source8 = (CHAR8 *) ((UINTN) FileHandle + FileOffset);
|
||||||
Length = *ReadSize;
|
Length = *ReadSize;
|
||||||
while (Length--) {
|
CopyMem (Destination8, Source8, Length);
|
||||||
*(Destination8++) = *(Source8++);
|
|
||||||
}
|
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue