]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add a new line to initialize the variable “PassThruProtocol” in ConsoleWrapers.c...
authorShumin Qiu <shumin.qiu@intel.com>
Mon, 16 Dec 2013 01:53:11 +0000 (01:53 +0000)
committershenshushi <shenshushi@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 16 Dec 2013 01:53:11 +0000 (01:53 +0000)
Signed-off-by: Shumin Qiu <shumin.qiu@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14989 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Application/Shell/ConsoleWrappers.c

index 38491216f39a87635428ad23ed4dc73485683ad7..49ba6e90e7bcad3100c898c5310b4bc2ece09e88 100644 (file)
@@ -255,7 +255,9 @@ FileBasedSimpleTextOutQueryMode (
   OUT UINTN                           *Rows\r
   )\r
 {\r
-  EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *PassThruProtocol = ((SHELL_EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *)This)->OriginalSimpleTextOut;\r
+  EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *PassThruProtocol;\r
+  \r
+  PassThruProtocol = ((SHELL_EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *)This)->OriginalSimpleTextOut;\r
   \r
   // Pass the QueryMode call thru to the original SimpleTextOutProtocol\r
   return (PassThruProtocol->QueryMode(\r