From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: insyde.com, ip: 210.71.195.45, mailfrom: tim.lewis@insyde.com) Received: from out02.hibox.biz (out02.hibox.biz [210.71.195.45]) by groups.io with SMTP; Mon, 26 Aug 2019 12:31:48 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2ADAAB0MWRd/w00GKxkGQEBAQEBAQE?= =?us-ascii?q?BAQEBAQcBAQEBAQGBUwQBAQEBAQsBgwRSIRIqjD1giBg1AYMDi0KKG4F7CQE?= =?us-ascii?q?BAQEBAQEBAQgjCQECAQGEOQQCAoMKNAkOAgoBAQUBAQEBAQYEbYRrQgyFSgE?= =?us-ascii?q?BAgMIAjAcIwwBBQYDDQQEAQFINggCBAESCwUOgwWCCg+rRhoCihkGgTQBgWK?= =?us-ascii?q?MJoQjPoEEAYFcBBiHCCIElS1DlXoHAokKjVkbjWoDimKNaIdrkGOBUDiBWHC?= =?us-ascii?q?DPD+CGyCIIyuFXyIwAYEgCBUBjhEBAQ?= X-IronPort-AV: E=Sophos;i="5.64,433,1559491200"; d="scan'208";a="16427598" Received: from unknown (HELO hb3-BKT203.hibox.biz) ([172.24.52.13]) by out02.hibox.biz with ESMTP; 27 Aug 2019 03:31:44 +0800 Received: from unknown (HELO hb3-BKT103.hibox.biz) ([172.24.51.13]) by hb3-BKT203.hibox.biz with ESMTP; 27 Aug 2019 03:31:44 +0800 Received: from unknown (HELO hb3-IN05.hibox.biz) ([172.24.12.15]) by hb3-BKT103.hibox.biz with ESMTP; 27 Aug 2019 03:31:44 +0800 X-Remote-IP: 73.116.1.175 X-Remote-Host: c-73-116-1-175.hsd1.ca.comcast.net X-SBRS: -10.0 X-MID: 30420881 X-Auth-ID: tim.lewis@insyde.com X-EnvelopeFrom: tim.lewis@insyde.com hiBox-Sender: 1 Received: from c-73-116-1-175.hsd1.ca.comcast.net (HELO DESKTOPHG9V3E8) ([73.116.1.175]) by hb3-IN05.hibox.biz with ESMTP/TLS/AES256-SHA; 27 Aug 2019 03:31:43 +0800 From: "Tim Lewis" To: "'Michael D Kinney'" , Cc: "'Jordan Justen'" , "'Ray Ni'" , "'Andrew Fish'" In-Reply-To: <20190822023610.2068-1-michael.d.kinney@intel.com> Subject: Re: [Patch][edk2-stable201908 0/2] EmulatorPkg/Win/Host: Fix image unload regression Date: Mon, 26 Aug 2019 12:31:39 -0700 Message-ID: <016201d55c44$e42cf220$ac86d660$@insyde.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQMWwHzCsQhzvjPcnDKHr9vjoSWq5aSLB95Q Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Language: en-us Tested-by: Tim Lewis -----Original Message----- From: Michael D Kinney Sent: Wednesday, August 21, 2019 7:36 PM To: devel@edk2.groups.io Cc: Jordan Justen ; Ray Ni ; Andrew Fish ; Tim Lewis Subject: [Patch][edk2-stable201908 0/2] 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 Cc: Ray Ni Cc: Andrew Fish Cc: Tim Lewis Signed-off-by: Michael D Kinney Michael D Kinney (2): EmulatorPkg/Win/Host: Fix image unload regression EmulatorPkg/Win/Host: Fix SecPrint() log line endings EmulatorPkg/Win/Host/WinHost.c | 193 +++++++++++++++++++++++++++++---- 1 file changed, 174 insertions(+), 19 deletions(-) -- 2.21.0.windows.1