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 /DcsInt | |
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 'DcsInt')
-rw-r--r-- | DcsInt/DcsInt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/DcsInt/DcsInt.c b/DcsInt/DcsInt.c index 8b6c803..8133726 100644 --- a/DcsInt/DcsInt.c +++ b/DcsInt/DcsInt.c @@ -563,7 +563,7 @@ SecRegionChangePwd() { 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;
@@ -571,7 +571,7 @@ SecRegionChangePwd() { 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));
@@ -682,7 +682,7 @@ SecRegionTryDecrypt() SecRegionOffset = 0;
VCAuthAsk();
if (gAuthPwdCode == AskPwdRetCancel) {
- return EFI_NOT_READY;
+ return EFI_DCS_USER_CANCELED;
}
if (gAuthPwdCode == AskPwdRetTimeout) {
return EFI_TIMEOUT;
|