mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Linux/MacOSX: correctly handle some internal exception classes that were missed by the WaitDialog class.
This commit is contained in:
@@ -29,6 +29,10 @@ namespace VeraCrypt
|
|||||||
void WaitDialog::ThrowException(Exception* ex)
|
void WaitDialog::ThrowException(Exception* ex)
|
||||||
{
|
{
|
||||||
#define VC_CONVERT_EXCEPTION(NAME) if (dynamic_cast<NAME*> (ex)) throw (NAME&) *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 (PasswordIncorrect);
|
||||||
VC_CONVERT_EXCEPTION (PasswordKeyfilesIncorrect);
|
VC_CONVERT_EXCEPTION (PasswordKeyfilesIncorrect);
|
||||||
VC_CONVERT_EXCEPTION (PasswordOrKeyboardLayoutIncorrect);
|
VC_CONVERT_EXCEPTION (PasswordOrKeyboardLayoutIncorrect);
|
||||||
|
|||||||
Reference in New Issue
Block a user