In AsciiStrncmp(), if length=0, should return 0

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@840 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff 2006-07-08 15:21:04 +00:00
parent bc724e5885
commit 03e772c322
1 changed files with 4 additions and 0 deletions

View File

@ -713,6 +713,10 @@ AsciiStrnCmp (
IN UINTN Length
)
{
if (Length == 0) {
return 0;
}
//
// ASSERT both strings are less long than PcdMaximumAsciiStringLength
//