From 6f05676ddd1d8bfade58d7530afa173e513c9a62 Mon Sep 17 00:00:00 2001 From: Shumin Qiu Date: Mon, 16 Dec 2013 01:53:11 +0000 Subject: [PATCH] =?utf8?q?Add=20a=20new=20line=20to=20initialize=20the=20v?= =?utf8?q?ariable=20=E2=80=9CPassThruProtocol=E2=80=9D=20=20in=20ConsoleWr?= =?utf8?q?apers.c=20to=20ensure=20the=20initialization=20not=20to=20be=20a?= =?utf8?q?=20part=20of=20its=20declaration.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Shumin Qiu Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14989 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Application/Shell/ConsoleWrappers.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ShellPkg/Application/Shell/ConsoleWrappers.c b/ShellPkg/Application/Shell/ConsoleWrappers.c index 38491216f3..49ba6e90e7 100644 --- a/ShellPkg/Application/Shell/ConsoleWrappers.c +++ b/ShellPkg/Application/Shell/ConsoleWrappers.c @@ -255,7 +255,9 @@ FileBasedSimpleTextOutQueryMode ( OUT UINTN *Rows ) { - EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *PassThruProtocol = ((SHELL_EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *)This)->OriginalSimpleTextOut; + EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *PassThruProtocol; + + PassThruProtocol = ((SHELL_EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *)This)->OriginalSimpleTextOut; // Pass the QueryMode call thru to the original SimpleTextOutProtocol return (PassThruProtocol->QueryMode( -- 2.39.2