From 7389f6496d27efa001d913deff81bcb79c9beae7 Mon Sep 17 00:00:00 2001 From: vanjeff Date: Thu, 2 Apr 2009 08:50:30 +0000 Subject: 1. updated return value to EFI_SUCCESS by default. 2. add console number check. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8012 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c | 10 ++++++++-- .../Universal/Console/ConSplitterDxe/ConSplitterGraphics.c | 4 +++- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'MdeModulePkg') diff --git a/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c b/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c index 7838c54a70..9b0fe2fed4 100644 --- a/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c +++ b/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c @@ -4146,6 +4146,10 @@ ConSplitterTextOutOutputString ( BackSpaceCount = 0; for (TargetString = WString; *TargetString != L'\0'; TargetString++) { + if (*TargetString == L'a' && *(TargetString + 1) == L'b' && *(TargetString + 2) == L'c') { +;// CpuBreakpoint (); + } + if (*TargetString == CHAR_BACKSPACE) { BackSpaceCount++; } @@ -4173,8 +4177,10 @@ ConSplitterTextOutOutputString ( } } - Private->TextOutMode.CursorColumn = Private->TextOutList[0].TextOut->Mode->CursorColumn; - Private->TextOutMode.CursorRow = Private->TextOutList[0].TextOut->Mode->CursorRow; + if (Private->CurrentNumberOfConsoles > 0) { + Private->TextOutMode.CursorColumn = Private->TextOutList[0].TextOut->Mode->CursorColumn; + Private->TextOutMode.CursorRow = Private->TextOutList[0].TextOut->Mode->CursorRow; + } if (BackSpaceCount > 0) { FreePool (TargetString); diff --git a/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterGraphics.c b/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterGraphics.c index 31b8468e05..452f7a9c59 100644 --- a/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterGraphics.c +++ b/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterGraphics.c @@ -237,7 +237,7 @@ ConSpliterGraphicsOutputBlt ( ) { EFI_STATUS Status; - EFI_STATUS ReturnStatus = EFI_DEVICE_ERROR; + EFI_STATUS ReturnStatus; TEXT_OUT_SPLITTER_PRIVATE_DATA *Private; UINTN Index; EFI_GRAPHICS_OUTPUT_PROTOCOL *GraphicsOutput; @@ -245,6 +245,8 @@ ConSpliterGraphicsOutputBlt ( Private = GRAPHICS_OUTPUT_SPLITTER_PRIVATE_DATA_FROM_THIS (This); + ReturnStatus = EFI_SUCCESS; + // // return the worst status met // -- cgit v1.2.3