diff --git a/CHANGELOG.md b/CHANGELOG.md index dd275304..0eb1f2cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,10 +9,15 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [1.11.5 / 5.66.5] - 2023-10- +### Changed +- improved suspend process ahndling [#3375](https://github.com/sandboxie-plus/Sandboxie/issues/3375) + ### Fixed - fixed issue with auto updater not offering version updates + + ## [1.11.4 / 5.66.4] - 2023-10-06 diff --git a/SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.cpp b/SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.cpp index e67bc9a9..78f29f51 100644 --- a/SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.cpp +++ b/SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.cpp @@ -281,7 +281,7 @@ void CBoxedProcess::InitProcessInfoImpl(void* ProcessHandle) m_WorkingDir = CBoxedProcess__GetPebString(ProcessHandle, PhpoCurrentDirectory); } - m_bSuspended = IsSuspended(); + TestSuspended(); } bool CBoxedProcess::InitProcessInfoEx() @@ -349,13 +349,13 @@ SB_STATUS CBoxedProcess::SetSuspend(bool bSet) if (!NT_SUCCESS(status)) return SB_ERR(status); - m_bSuspended = IsSuspended(); + TestSuspended(); return SB_OK; } return SB_ERR(); } -bool CBoxedProcess::IsSuspended() const +bool CBoxedProcess::TestSuspended() const { bool isSuspended = true; @@ -381,6 +381,7 @@ bool CBoxedProcess::IsSuspended() const } } + m_bSuspended = isSuspended; return isSuspended; } diff --git a/SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.h b/SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.h index 24c9c785..f1f59d8f 100644 --- a/SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.h +++ b/SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.h @@ -48,7 +48,8 @@ public: virtual void SetTerminated(); virtual SB_STATUS SetSuspend(bool bSet); - virtual bool IsSuspended() const; + //virtual bool IsSuspended() const; + virtual bool TestSuspended() const; virtual bool IsWoW64() const { return m_bIsWoW64; } diff --git a/SandboxiePlus/SandMan/Views/SbieView.cpp b/SandboxiePlus/SandMan/Views/SbieView.cpp index 43468345..298d0beb 100644 --- a/SandboxiePlus/SandMan/Views/SbieView.cpp +++ b/SandboxiePlus/SandMan/Views/SbieView.cpp @@ -700,7 +700,7 @@ bool CSbieView::UpdateMenu() { m_CurProcesses.append(pProcess); iProcessCount++; - if (pProcess->IsSuspended()) + if (pProcess->TestSuspended()) iSuspendedCount++; } else