1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00

Operation completion message after synchronization running over checklist was shown as an error

Because ESshTerminate was rethrown as EFatal.
Caused by 0de5a4124

Source commit: 3ea09e85fa0d32acdcc3b677d9158193af93a65c
This commit is contained in:
Martin Prikryl
2018-09-20 06:50:21 +00:00
parent b6b6d07aab
commit 44cd238825

View File

@@ -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"");