diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-04-02 08:50:30 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-04-02 08:50:30 +0000 |
commit | 7389f6496d27efa001d913deff81bcb79c9beae7 (patch) | |
tree | 31edfa99da0668e6812c03bac7a5ce0170f8b219 /MdeModulePkg/Universal/Console/ConSplitterDxe | |
parent | f6f910dd125144707e3516bbb517b8ec7a388c06 (diff) | |
download | edk2-platforms-7389f6496d27efa001d913deff81bcb79c9beae7.tar.xz |
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
Diffstat (limited to 'MdeModulePkg/Universal/Console/ConSplitterDxe')
-rw-r--r-- | MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c | 10 | ||||
-rw-r--r-- | MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterGraphics.c | 4 |
2 files changed, 11 insertions, 3 deletions
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
//
|