]> git.proxmox.com Git - mirror_edk2.git/commit
EmulatorPkg/Win/Host: Fix image unload regression
authorMichael D Kinney <michael.d.kinney@intel.com>
Thu, 22 Aug 2019 02:36:09 +0000 (10:36 +0800)
committerRay Ni <ray.ni@intel.com>
Mon, 26 Aug 2019 22:01:58 +0000 (06:01 +0800)
commit10ccc27c9548ab2550689e68f6f45dc48120bc79
tree647a93eb8229780e73933ac17a53f36a5d571597
parentabc0155b034230128ad4aaa51ac05a315acfa7c1
EmulatorPkg/Win/Host: Fix image unload regression

https://bugzilla.tianocore.org/show_bug.cgi?id=2104

When UEFI Applications or UEFI Drivers are unloaded,
the PeCoffLoaderUnloadImageExtraAction() needs to unload
the image using FreeLibrary() if the image was successfully
loaded using LoadLibrrayEx().

This is a regression from the Nt32Pkg that supported
unloading applications and drivers as well as loading
the same application or driver multiple times.

Cc: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Cc: Andrew Fish <afish@apple.com>
Tested-by: Tim Lewis <tim.lewis@insyde.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
EmulatorPkg/Win/Host/WinHost.c