git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5941
6f19259b-4bc3-4df7-8a09-
765794883524
@param SourceBuffer Pointer to the source buffer to compare.\r
@param Length Number of bytes to compare.\r
\r
- @return 0 All Length bytes of the two buffers are identical.\r
+ @retval 0 All Length bytes of the two buffers are identical.\r
@retval Non-zero The first mismatched byte in SourceBuffer subtracted from the first\r
mismatched byte in DestinationBuffer.\r
\r
{\r
ASSERT (!(Buffer == NULL && Length > 0));\r
ASSERT (Length <= (MAX_ADDRESS - (UINTN)Buffer + 1));\r
+ if (Length == 0) {\r
+ return Buffer;\r
+ } \r
+ \r
return InternalMemZeroMem (Buffer, Length);\r
}\r