]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseMemoryLibOptPei/MemLibGuid.c
Correct the wrong '?' character to '-', and add check DestinationBuffer == SourceBuff...
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibOptPei / MemLibGuid.c
index cbbad2cb5dfb65fe5f30ceb4dc369bd71b646647..9386e751ce4a2e30560561957932ae70a96ae5ee 100644 (file)
@@ -106,7 +106,7 @@ CompareGuid (
   If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 32-bit boundary, then ASSERT().\r
   If Length is not aligned on a 128-bit boundary, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). \r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
   @param  Length  Number of bytes in Buffer to scan.\r