]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/PeiMemoryLib/ZeroMemWrapper.c
Correct the wrong '?' character to '-', and add check DestinationBuffer == SourceBuff...
[mirror_edk2.git] / MdePkg / Library / PeiMemoryLib / ZeroMemWrapper.c
index 33b9d07ecf4707983e633987267390029eca1909..337b45346e0d982ddac5368ca7b64ba02690b967 100644 (file)
@@ -28,7 +28,7 @@
 \r
   This function fills Length bytes of Buffer with zeros, and returns Buffer.\r
   If Length > 0 and Buffer is NULL, 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 fill with zeros.\r
   @param  Length      Number of bytes in Buffer to fill with zeros.\r