diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-11-08 23:06:25 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-11-08 23:07:42 +0100 |
commit | 2d4d3ab4ed0ee86d46fe2b44ca1e56a3d2916f68 (patch) | |
tree | 92955bebea443f32e47c38892e59a34da3624072 /DcsInt | |
parent | 4566f95fd9f70530866457beb545a794cc80e1d0 (diff) | |
download | VeraCrypt-DCS-2d4d3ab4ed0ee86d46fe2b44ca1e56a3d2916f68.tar.gz VeraCrypt-DCS-2d4d3ab4ed0ee86d46fe2b44ca1e56a3d2916f68.zip |
Fix "ActionFailed" not working and add "ActionCancelled" to customize handling of user hitting ESC on password prompt
Diffstat (limited to 'DcsInt')
-rw-r--r-- | DcsInt/DcsInt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/DcsInt/DcsInt.c b/DcsInt/DcsInt.c index 8133726..7dd98ec 100644 --- a/DcsInt/DcsInt.c +++ b/DcsInt/DcsInt.c @@ -804,6 +804,7 @@ enum OnExitTypes{ OnExitAuthFaild = 1,
OnExitAuthNotFound,
OnExitAuthTimeout,
+ OnExitAuthCancelled,
OnExitSuccess
};
@@ -976,6 +977,8 @@ OnExit( if (fileStr != NULL) {
EfiSetVar(L"DcsExecCmd", NULL, fileStr, (StrLen(fileStr) + 1) * 2, EFI_VARIABLE_BOOTSERVICE_ACCESS);
}
+
+ retValue = EFI_DCS_POSTEXEC_REQUESTED;
goto exit;
}
@@ -1185,6 +1188,8 @@ UefiMain( if (EFI_ERROR(res)) {
if (res == EFI_TIMEOUT)
return OnExit(gOnExitTimeout, OnExitAuthTimeout, res);
+ else if (res == EFI_DCS_USER_CANCELED)
+ return OnExit(gOnExitCancelled, OnExitAuthCancelled, res);
else
return OnExit(gOnExitFailed, OnExitAuthFaild, res);
}
|