diff --git a/SandboxiePlus/SandMan/SandManRecovery.cpp b/SandboxiePlus/SandMan/SandManRecovery.cpp index 8db1d81b..ccfd98a3 100644 --- a/SandboxiePlus/SandMan/SandManRecovery.cpp +++ b/SandboxiePlus/SandMan/SandManRecovery.cpp @@ -2,7 +2,7 @@ void CSandMan::OnFileToRecover(const QString& BoxName, const QString& FilePath, const QString& BoxPath, quint32 ProcessId) { CSandBoxPtr pBox = theAPI->GetBoxByName(BoxName); - if ((!pBox.isNull() && pBox.objectCast()->IsRecoverySuspended()) || IsDisableRecovery()) + if (pBox.isNull() || pBox.objectCast()->IsRecoverySuspended() || IsDisableRecovery()) return; if (theConf->GetBool("Options/InstantRecovery", true))