From 09db6bd29bdcd65eb5e124c58db5a36cf60cbfb2 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 28 Jan 2019 19:01:40 +0100 Subject: Add specific handling when user cancel password prompt with ESC so that original Windows loader is called in this case --- DcsBoot/DcsBoot.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'DcsBoot') diff --git a/DcsBoot/DcsBoot.c b/DcsBoot/DcsBoot.c index d4f4d56..18fb005 100644 --- a/DcsBoot/DcsBoot.c +++ b/DcsBoot/DcsBoot.c @@ -183,6 +183,11 @@ DcsBootMain( { EfiCpuHalt(); } + else if (res == EFI_DCS_USER_CANCELED) + { + /* If user cancels password prompt, call original Windows loader */ + res = EfiExec(NULL, gEfiExecCmdDefault); + } return res; } -- cgit v1.2.3