Re: [edk2-devel] [PATCH v2 1/1] BoardModulePkg/BoardBdsHookLib: Fix F7 overwrites Boot0000

2022-09-16 Thread JamesWang [] via groups . io
.groups.io; Oram, Isaac W ; JamesWang [王家明] Cc: Dong, Eric ; Gao, Liming Subject: [EXTERNAL] RE: [edk2-devel] [PATCH v2 1/1] BoardModulePkg/BoardBdsHookLib: Fix F7 overwrites Boot **CAUTION: The e-mail below is from an external source. Please exercise caution before opening attachments

[edk2-devel] [PATCH v2 0/1] BoardModulePkg/BoardBdsHookLib: Fix F7 overwrites Boot0000

2022-09-13 Thread JamesWang [] via groups . io
This version has the fix for previous coding style. Code changes can be found here: https://github.com/JamesWangAmiTw/edk2-platforms/tree/F7OverwriteBoot James Wang (1): BoardModulePkg/BoardBdsHookLib: Fix F7 overwrites Boot Platform/Intel/BoardModulePkg/Library/BoardBdsHookLib/BoardB

[edk2-devel] [PATCH v2 1/1] BoardModulePkg/BoardBdsHookLib: Fix F7 overwrites Boot0000

2022-09-13 Thread JamesWang [] via groups . io
Check if mBootMenuOptionNumber is valid or not before calling RegisterBootOptionHotkey to avoid overwriting Boot Cc: Eric Dong Cc: Isaac Oram Cc: Liming Gao Signed-off-by: James Wang --- Platform/Intel/BoardModulePkg/Library/BoardBdsHookLib/BoardBootOption.c | 17 +++-- 1 fil

[edk2-devel] [edk2-platforms][PATCH v1 0/1] BoardModulePkg: Fix Boot0000 got overwritten

2022-06-23 Thread JamesWang [] via groups . io
A simple fix to avoid overwrtiing Boot when mBootMenuFile is not found. James Wang (1): BoardModulePkg: Fix Boot got overwritten Platform/Intel/BoardModulePkg/Library/BoardBdsHookLib/BoardBootOption.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) -- 2.13.2

[edk2-devel] [PATCH v1 1/1] BoardModulePkg: Fix Boot0000 got overwritten

2022-06-23 Thread JamesWang [] via groups . io
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3522 Boot will be overwritten when F7 is pressed and Boot Menu is not found. Check if mBootMenuOptionNumber is valid or not before calling RegisterBootOptionHotkey Cc: Eric Dong Cc: Isaac Oram Cc: Liming Gao Signed-off-by: James Wang ---

[edk2-devel] [PATCH] fix: F7 key can register Boot0000 if error happens getting mBootMenuOptionNumber

2022-06-02 Thread JamesWang [] via groups . io
From: JamesWang --- .../Library/BoardBdsHookLib/BoardBootOption.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Platform/Intel/BoardModulePkg/Library/BoardBdsHookLib/BoardBootOption.c b/Platform/Intel/BoardModulePkg/Library/BoardBdsHookLib/Boa

[edk2-devel] Bug #3522 patch

2021-08-13 Thread JamesWang []
Hi, Refer to: Bug #3522 There is a problem in RegisterStaticHotkey() of BoardBootOption.c that it still RegisterBootOptionHotkey() for F7 key on Boot if mBootMenuOptionNumber is not assigned. mBootMenuOptionNumber is not assigned (LoadOp