mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-26 15:14:02 +02:00
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:
parent
eec6d259fc
commit
c33add6776
@ -4495,6 +4495,8 @@ ConSplitterTextOutOutputString (
|
|||||||
TargetString = WString;
|
TargetString = WString;
|
||||||
} else {
|
} else {
|
||||||
TargetString = AllocatePool (sizeof (CHAR16) * (StrLen (WString) + BackSpaceCount + 1));
|
TargetString = AllocatePool (sizeof (CHAR16) * (StrLen (WString) + BackSpaceCount + 1));
|
||||||
|
ASSERT (TargetString != NULL);
|
||||||
|
|
||||||
StrCpy (TargetString, WString);
|
StrCpy (TargetString, WString);
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user