diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-04-06 18:51:14 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-04-06 19:50:24 +0200 |
commit | ae28d510163d6108f3746ee1e5d64d00350ac8ee (patch) | |
tree | 5265f94b5e4ad1e445d1304db524bd618daf5a97 /src/Main/Forms/WaitDialog.cpp | |
parent | 32f11001c039fd0de254be6c68f7c036389b9250 (diff) | |
download | VeraCrypt-ae28d510163d6108f3746ee1e5d64d00350ac8ee.tar.gz VeraCrypt-ae28d510163d6108f3746ee1e5d64d00350ac8ee.zip |
Linux/MaxOSX: correctly detect type of internal exceptions
Diffstat (limited to 'src/Main/Forms/WaitDialog.cpp')
-rw-r--r-- | src/Main/Forms/WaitDialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Main/Forms/WaitDialog.cpp b/src/Main/Forms/WaitDialog.cpp index 4fc6f60d..048bb91f 100644 --- a/src/Main/Forms/WaitDialog.cpp +++ b/src/Main/Forms/WaitDialog.cpp @@ -29,10 +29,6 @@ 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); @@ -96,6 +92,10 @@ namespace VeraCrypt VC_CONVERT_EXCEPTION (SecurityTokenKeyfileNotFound); VC_CONVERT_EXCEPTION (UnsupportedAlgoInTrueCryptMode); VC_CONVERT_EXCEPTION (UnsupportedTrueCryptFormat); + VC_CONVERT_EXCEPTION (SystemException); + VC_CONVERT_EXCEPTION (CipherException); + VC_CONVERT_EXCEPTION (VolumeException); + VC_CONVERT_EXCEPTION (PasswordException); throw *ex; } } |