]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/Application/Shell/ShellProtocol.c
ShellPkg: Fix Shell treats every .EFI file as an executable application.
authorQiu Shumin <shumin.qiu@intel.com>
Mon, 25 Apr 2016 02:08:30 +0000 (10:08 +0800)
committerQiu Shumin <shumin.qiu@intel.com>
Tue, 26 Apr 2016 06:37:50 +0000 (14:37 +0800)
commit91a92220f75c15950e5ba913c1f204ec73f2c2e9
tree0b270db8a12fb4a1119b58d45888855423fa4eb5
parent4a21fb3b67a0ef1655b43e9368b6b697bbf327af
ShellPkg: Fix Shell treats every .EFI file as an executable application.

UEFI Shell 2.x cannot recognize whether a .EFI file is an application or
a driver. This means when we typed in a driver image in Shell command
line, Shell will load the driver image and try to run the entry point
function of the driver.
This patch check the ImageCodeType to fix the issue.

Cc: Jaben Carsey <jaben.carsey@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
ShellPkg/Application/Shell/Shell.uni
ShellPkg/Application/Shell/ShellProtocol.c