Add check of buffer value returned from AllocateZeroPool()

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3718 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
mdkinney 2007-08-27 23:30:37 +00:00
parent e5e12de7d0
commit cc79cef962
1 changed files with 3 additions and 0 deletions

View File

@ -1130,6 +1130,9 @@ DevNullSyncGopStdOut (
MaxColumn = Private->DevNullColumns;
Buffer = AllocateZeroPool ((MaxColumn + 1) * sizeof (CHAR16));
if (Buffer == NULL) {
return ReturnStatus;
}
for (Row = 0; Row < Private->DevNullRows; Row++, Screen += (MaxColumn + 1), Attributes += MaxColumn) {