When running 2nd instance of WinHost.exe, below error is printed: ERROR : Can not open Firmware Device File ../FV/FV_RECOVERY.fd...
The root cause is "RECOVERY.FD" is exclusively opened by the first instance of WinHost.exe. The patch changes to open "RECOVERY.FD" in shared way so that 2nd+ instance of WinHost.exe can still run successfully. Signed-off-by: Ray Ni <[email protected]> Signed-off-by: Ray Ni <[email protected]> Cc: Jordan Justen <[email protected]> Cc: Andrew Fish <[email protected]> Cc: Zhiguang Liu <[email protected]> Cc: Hao A Wu <[email protected]> --- EmulatorPkg/Win/Host/WinHost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EmulatorPkg/Win/Host/WinHost.c b/EmulatorPkg/Win/Host/WinHost.c index bd7662683a..5a354d084e 100644 --- a/EmulatorPkg/Win/Host/WinHost.c +++ b/EmulatorPkg/Win/Host/WinHost.c @@ -269,7 +269,7 @@ Returns: NtFileHandle = CreateFile ( FileName, GENERIC_READ | GENERIC_WRITE | GENERIC_EXECUTE, - FILE_SHARE_READ, + FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, CreationDisposition, FILE_ATTRIBUTE_NORMAL, -- 2.21.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#42422): https://edk2.groups.io/g/devel/message/42422 Mute This Topic: https://groups.io/mt/32061781/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
