X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ShellPkg%2FApplication%2FShell%2FConsoleWrappers.c;h=49ba6e90e7bcad3100c898c5310b4bc2ece09e88;hb=6f05676ddd1d8bfade58d7530afa173e513c9a62;hp=38491216f39a87635428ad23ed4dc73485683ad7;hpb=dcf9b428e66e2bc57b70e7e0289f07c72efbbb44;p=mirror_edk2.git 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(