Add some ASSERT()s.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7299 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
gikidy
2009-01-19 01:55:14 +00:00
parent 19c804c4b3
commit 3069bc1944
2 changed files with 4 additions and 0 deletions

View File

@ -708,6 +708,7 @@ DevPathToTextUsbWWID (
// In case no NULL terminator in SerialNumber, create a new one with NULL terminator
//
NewStr = AllocateCopyPool ((Length + 1) * sizeof (CHAR16), SerialNumberStr);
ASSERT (NewStr != NULL);
NewStr [Length] = 0;
SerialNumberStr = NewStr;
}