|
|
@@ -496,9 +496,9 @@ Exception * __fastcall CloneException(Exception * E)
|
|
|
void __fastcall RethrowException(Exception * E)
|
|
|
{
|
|
|
// this list has to be in sync with ExceptionMessage
|
|
|
- if (dynamic_cast<EFatal *>(E) != NULL)
|
|
|
+ if (dynamic_cast<ExtException *>(E) != NULL)
|
|
|
{
|
|
|
- throw EFatal(E, L"");
|
|
|
+ dynamic_cast<ExtException *>(E)->Rethrow();
|
|
|
}
|
|
|
else if (dynamic_cast<ECallbackGuardAbort *>(E) != NULL)
|
|
|
{
|
|
|
@@ -512,10 +512,6 @@ void __fastcall RethrowException(Exception * E)
|
|
|
{
|
|
|
// noop, should never get here
|
|
|
}
|
|
|
- else if (dynamic_cast<ExtException *>(E) != NULL)
|
|
|
- {
|
|
|
- dynamic_cast<ExtException *>(E)->Rethrow();
|
|
|
- }
|
|
|
else
|
|
|
{
|
|
|
throw ExtException(E, L"");
|