This commit is contained in:
DavidXanatos 2023-10-26 16:50:11 +02:00
parent c82f8b6978
commit aa90d54971
5 changed files with 7 additions and 6 deletions

View File

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

View File

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

View File

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

View File

@ -1447,7 +1447,7 @@ SB_STATUS CSbieAPI::UpdateProcesses(int iKeep, bool bAllSessions)
pProcess->InitProcessInfo();
}
pProcess->InitProcessInfoEx();
pProcess->UpdateProcessInfo();
}
foreach(const CBoxedProcessPtr& pProcess, OldProcessList)

View File

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