]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/DxeMemoryLib/ZeroMemWrapper.c
Correct the wrong '?' character to '-', and add check DestinationBuffer == SourceBuff...
[mirror_edk2.git] / MdePkg / Library / DxeMemoryLib / ZeroMemWrapper.c
index c020c2226c3a9a615f1975848f6b044027a7078b..387700329c27ba41d1a63e9b6891313357a6d3c6 100644 (file)
@@ -29,7 +29,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