add check for NULL pointer reference.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7165 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff 2008-12-31 07:50:01 +00:00
parent eec6d259fc
commit c33add6776
1 changed files with 47 additions and 45 deletions

View File

@ -4495,6 +4495,8 @@ ConSplitterTextOutOutputString (
TargetString = WString;
} else {
TargetString = AllocatePool (sizeof (CHAR16) * (StrLen (WString) + BackSpaceCount + 1));
ASSERT (TargetString != NULL);
StrCpy (TargetString, WString);
}
//