From c4d30b34ba42c807ddb8ad6c0a98beafcee68a81 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 5 Apr 2015 12:00:48 +0200 Subject: Linux/MacOSX: correctly handle some internal exception classes that were missed by the WaitDialog class. --- src/Main/Forms/WaitDialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 (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); -- cgit v1.2.3