This commit is contained in:
DavidXanatos 2023-10-15 18:42:49 +02:00
parent 278be4e396
commit 05ca6bc9f7
4 changed files with 12 additions and 5 deletions

View File

@ -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

View File

@ -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;
}

View File

@ -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; }

View File

@ -700,7 +700,7 @@ bool CSbieView::UpdateMenu()
{
m_CurProcesses.append(pProcess);
iProcessCount++;
if (pProcess->IsSuspended())
if (pProcess->TestSuspended())
iSuspendedCount++;
}
else