mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-10-05 16:46:35 -05:00
Linux/MacOSX: correctly handle some internal exception classes that were missed by the WaitDialog class.
This commit is contained in:
1 parent
a5203dd006
commit
c4d30b34ba
1 file changed
+4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user