VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/DcsBoot
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2019-01-28 19:01:40 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-03-21 21:01:07 +0100
commit09db6bd29bdcd65eb5e124c58db5a36cf60cbfb2 (patch)
tree6467f626faa5360ef5ede507a4e553bdae631787 /DcsBoot
parentddaa8ae47a58317cf677a62c4beef62279d4a4da (diff)
downloadVeraCrypt-DCS-09db6bd29bdcd65eb5e124c58db5a36cf60cbfb2.tar.gz
VeraCrypt-DCS-09db6bd29bdcd65eb5e124c58db5a36cf60cbfb2.zip
Add specific handling when user cancel password prompt with ESC so that original Windows loader is called in this case
Diffstat (limited to 'DcsBoot')
-rw-r--r--DcsBoot/DcsBoot.c5
1 files changed, 5 insertions, 0 deletions
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;
}