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 /DcsCfg | |
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 'DcsCfg')
-rw-r--r-- | DcsCfg/DcsCfgCrypt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/DcsCfg/DcsCfgCrypt.c b/DcsCfg/DcsCfgCrypt.c index 2d5497b..53e03a1 100644 --- a/DcsCfg/DcsCfgCrypt.c +++ b/DcsCfg/DcsCfgCrypt.c @@ -167,7 +167,7 @@ ChangePassword( ZeroMem(&confirmPassword, sizeof(newPassword));
VCAskPwd(AskPwdNew, &newPassword);
if (gAuthPwdCode == AskPwdRetCancel) {
- return EFI_NOT_READY;
+ return EFI_DCS_USER_CANCELED;
}
if (gAuthPwdCode == AskPwdRetTimeout) {
return EFI_TIMEOUT;
@@ -175,7 +175,7 @@ ChangePassword( VCAskPwd(AskPwdConfirm, &confirmPassword);
if (gAuthPwdCode == AskPwdRetCancel) {
MEM_BURN(&newPassword, sizeof(newPassword));
- return EFI_NOT_READY;
+ return EFI_DCS_USER_CANCELED;
}
if (gAuthPwdCode == AskPwdRetTimeout) {
MEM_BURN(&newPassword, sizeof(newPassword));
|