X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseMemoryLibOptPei%2FCopyMemWrapper.c;h=42335277a1831cf0b4be311d03a0a06c074ae834;hp=80feff7c98c5c0b70cd6ef433e92f7a9d4365280;hb=2bfb60098f608dc32ff5d22b0fd087c1636b0881;hpb=66df25318672baf41db5b2d640020e61cca97a35 diff --git a/MdePkg/Library/BaseMemoryLibOptPei/CopyMemWrapper.c b/MdePkg/Library/BaseMemoryLibOptPei/CopyMemWrapper.c index 80feff7c98..42335277a1 100644 --- a/MdePkg/Library/BaseMemoryLibOptPei/CopyMemWrapper.c +++ b/MdePkg/Library/BaseMemoryLibOptPei/CopyMemWrapper.c @@ -10,12 +10,14 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - The following BaseMemoryLib instances share the same version of this file: + The following BaseMemoryLib instances contain the same copy of this file: BaseMemoryLib BaseMemoryLibMmx BaseMemoryLibSse2 BaseMemoryLibRepStr + BaseMemoryLibOptDxe + BaseMemoryLibOptPei PeiMemoryLib DxeMemoryLib @@ -50,7 +52,7 @@ CopyMem ( IN UINTN Length ) { - if (0 == Length) { + if (Length == 0) { return DestinationBuffer; } ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer));