diff options
Diffstat (limited to 'MdePkg')
-rw-r--r-- | MdePkg/Library/UefiLib/UefiLibPrint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Library/UefiLib/UefiLibPrint.c b/MdePkg/Library/UefiLib/UefiLibPrint.c index de3e68ea2f..b8a076083d 100644 --- a/MdePkg/Library/UefiLib/UefiLibPrint.c +++ b/MdePkg/Library/UefiLib/UefiLibPrint.c @@ -58,7 +58,7 @@ InternalPrint ( Return = UnicodeVSPrint (Buffer, BufferSize, Format, Marker);
- if (Console != NULL) {
+ if (Console != NULL && Return > 0) {
//
// To be extra safe make sure Console has been initialized
//
|