VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/Forms/WaitDialog.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-04-05 12:00:48 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-04-05 14:25:12 +0200
commitc4d30b34ba42c807ddb8ad6c0a98beafcee68a81 (patch)
tree1a59d6ae4d73780ff764b643424d11bd6e4cd2b4 /src/Main/Forms/WaitDialog.cpp
parenta5203dd006a1b0cb96b8730309e84eb409fa93b2 (diff)
downloadVeraCrypt-c4d30b34ba42c807ddb8ad6c0a98beafcee68a81.tar.gz
VeraCrypt-c4d30b34ba42c807ddb8ad6c0a98beafcee68a81.zip
Linux/MacOSX: correctly handle some internal exception classes that were missed by the WaitDialog class.
Diffstat (limited to 'src/Main/Forms/WaitDialog.cpp')
-rw-r--r--src/Main/Forms/WaitDialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Main/Forms/WaitDialog.cpp b/src/Main/Forms/WaitDialog.cpp
index a60c5e45..4fc6f60d 100644
--- a/src/Main/Forms/WaitDialog.cpp
+++ b/src/Main/Forms/WaitDialog.cpp
@@ -29,6 +29,10 @@ namespace VeraCrypt
void WaitDialog::ThrowException(Exception* ex)
{
#define VC_CONVERT_EXCEPTION(NAME) if (dynamic_cast<NAME*> (ex)) throw (NAME&) *ex;
+ VC_CONVERT_EXCEPTION (SystemException);
+ VC_CONVERT_EXCEPTION (CipherException);
+ VC_CONVERT_EXCEPTION (VolumeException);
+ VC_CONVERT_EXCEPTION (PasswordException);
VC_CONVERT_EXCEPTION (PasswordIncorrect);
VC_CONVERT_EXCEPTION (PasswordKeyfilesIncorrect);
VC_CONVERT_EXCEPTION (PasswordOrKeyboardLayoutIncorrect);