diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-01-28 19:01:40 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-03-21 21:01:07 +0100 |
commit | 09db6bd29bdcd65eb5e124c58db5a36cf60cbfb2 (patch) | |
tree | 6467f626faa5360ef5ede507a4e553bdae631787 /DcsBoot | |
parent | ddaa8ae47a58317cf677a62c4beef62279d4a4da (diff) | |
download | VeraCrypt-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.c | 5 |
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;
}
|