From aa90d5497117e23ab962b406d9abc3a501b7d955 Mon Sep 17 00:00:00 2001 From: DavidXanatos <3890945+DavidXanatos@users.noreply.github.com> Date: Thu, 26 Oct 2023 16:50:11 +0200 Subject: [PATCH] 1.12.0b --- CHANGELOG.md | 2 +- SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.cpp | 5 +++-- SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.h | 2 +- SandboxiePlus/QSbieAPI/SbieAPI.cpp | 2 +- SandboxiePlus/version.h | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5de6f7f7..06a6d278 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ### Changed - improved open url dialog box [#3401](https://github.com/sandboxie-plus/Sandboxie/issues/3401) - +- improved suspended process detection ### Fixed - fixed issue with key to bring sandman in fron as top most diff --git a/SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.cpp b/SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.cpp index 542de4a6..2777f8df 100644 --- a/SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.cpp +++ b/SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.cpp @@ -284,13 +284,14 @@ void CBoxedProcess::InitProcessInfoImpl(void* ProcessHandle) TestSuspended(); } -bool CBoxedProcess::InitProcessInfoEx() +void CBoxedProcess::UpdateProcessInfo() { if (m_ProcessFlags == 0 && m_pBox) m_ProcessFlags = m_pBox->Api()->QueryProcessInfo(m_ProcessId); m_ImageType = m_pBox->Api()->QueryProcessInfo(m_ProcessId, 'gpit'); - return true; + if (m_bSuspended) + TestSuspended(); } extern "C" diff --git a/SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.h b/SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.h index cc62e606..03c1642a 100644 --- a/SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.h +++ b/SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.h @@ -30,7 +30,7 @@ public: virtual ~CBoxedProcess(); virtual bool InitProcessInfo(); - virtual bool InitProcessInfoEx(); + virtual void UpdateProcessInfo(); virtual quint32 GetProcessId() const { return m_ProcessId; } virtual quint32 GetParendPID() const { return m_ParendPID; } diff --git a/SandboxiePlus/QSbieAPI/SbieAPI.cpp b/SandboxiePlus/QSbieAPI/SbieAPI.cpp index 68650ba5..72020a90 100644 --- a/SandboxiePlus/QSbieAPI/SbieAPI.cpp +++ b/SandboxiePlus/QSbieAPI/SbieAPI.cpp @@ -1447,7 +1447,7 @@ SB_STATUS CSbieAPI::UpdateProcesses(int iKeep, bool bAllSessions) pProcess->InitProcessInfo(); } - pProcess->InitProcessInfoEx(); + pProcess->UpdateProcessInfo(); } foreach(const CBoxedProcessPtr& pProcess, OldProcessList) diff --git a/SandboxiePlus/version.h b/SandboxiePlus/version.h index ee33be49..e46aa0ad 100644 --- a/SandboxiePlus/version.h +++ b/SandboxiePlus/version.h @@ -3,7 +3,7 @@ #define VERSION_MJR 1 #define VERSION_MIN 12 #define VERSION_REV 0 -#define VERSION_UPD 1 +#define VERSION_UPD 2 #ifndef STR #define STR2(X) #X