From 28981267c53451651743a04b132c48e2399fcddf Mon Sep 17 00:00:00 2001 From: jcarsey Date: Tue, 11 Jun 2013 22:07:03 +0000 Subject: ShellPkg: Fix ARM build errors. submitted-by: Olivier Martin olivier.martin@arm.com> reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14400 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c | 2 ++ ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexEditorTypes.h | 2 +- ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MainHexEditor.c | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit') diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c index bfedf58d78..ba15a49ce1 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c @@ -580,6 +580,7 @@ HBufferImageRestoreMousePosition ( // backup the old screen attributes // Orig = HMainEditor.ColorAttributes; + New.Data = 0; New.Colors.Foreground = Orig.Colors.Background; New.Colors.Background = Orig.Colors.Foreground; @@ -755,6 +756,7 @@ HBufferImageRefresh ( UINTN Tmp; Orig = HMainEditor.ColorAttributes; + New.Data = 0; New.Colors.Foreground = Orig.Colors.Background; New.Colors.Background = Orig.Colors.Foreground; diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexEditorTypes.h b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexEditorTypes.h index 22f5c05566..ddd6070c94 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexEditorTypes.h +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexEditorTypes.h @@ -60,7 +60,7 @@ typedef struct { typedef union { HEFI_EDITOR_COLOR_ATTRIBUTES Colors; - UINT8 Data; + UINTN Data; } HEFI_EDITOR_COLOR_UNION; typedef struct { diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MainHexEditor.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MainHexEditor.c index a40388ff40..4c346cc24e 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MainHexEditor.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MainHexEditor.c @@ -290,7 +290,6 @@ HMainCommandSaveBuffer ( // the file won't be saved // return EFI_SUCCESS; - break; case L'c': case L'C': -- cgit v1.2.3