]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/DxeMemoryLib/CompareMemWrapper.c
Correct the wrong '?' character to '-', and add check DestinationBuffer == SourceBuff...
[mirror_edk2.git] / MdePkg / Library / DxeMemoryLib / CompareMemWrapper.c
index ae7accc86f4df4013b5e6a86183b30eba76a3ba7..c62cfe0354f7d956b56b3dcf18d428b293c7ac1f 100644 (file)
@@ -53,7 +53,7 @@ CompareMem (
   IN UINTN       Length\r
   )\r
 {\r
-  if (Length == 0) {\r
+  if (Length == 0 || DestinationBuffer == SourceBuffer) {\r
     return 0;\r
   }\r
   ASSERT (DestinationBuffer != NULL);\r