mirror of https://github.com/acidanthera/audk.git
EmulatorPkg: Make the library work with DXE Core.
The DXE core calls library constructors after it calls DEBUG macros, so we need more error handling in the lib. signed-off-by: andrewfish git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12118 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
bed0bbc310
commit
9184d5da2f
|
@ -66,6 +66,10 @@ SerialPortWrite (
|
||||||
IN UINTN NumberOfBytes
|
IN UINTN NumberOfBytes
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
if (gEmuThunk == NULL) {
|
||||||
|
return NumberOfBytes;
|
||||||
|
}
|
||||||
|
|
||||||
return gEmuThunk->WriteStdErr (Buffer, NumberOfBytes);
|
return gEmuThunk->WriteStdErr (Buffer, NumberOfBytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue