1.10.2g
This commit is contained in:
parent
9b59a59cea
commit
ad7a232d33
11
CHANGELOG.md
11
CHANGELOG.md
|
@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file.
|
||||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
|
|
||||||
|
## [1.10.3 / 5.65.3] - 2023-08-??
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- improved business certificate handling
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- fixed issues with pinned shortcuts
|
||||||
|
- fixed Process Suspend/Resume context menu [#3156](https://github.com/sandboxie-plus/Sandboxie/issues/3156)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [1.10.2 / 5.65.2] - 2023-07-31
|
## [1.10.2 / 5.65.2] - 2023-07-31
|
||||||
|
|
||||||
|
|
|
@ -359,17 +359,21 @@ bool CBoxedProcess::IsSuspended() const
|
||||||
{
|
{
|
||||||
bool isSuspended = true;
|
bool isSuspended = true;
|
||||||
|
|
||||||
for(HANDLE hThread = NULL;;)
|
for (HANDLE hThread = NULL;;)
|
||||||
{
|
{
|
||||||
HANDLE nNextThread = NULL;
|
HANDLE nNextThread = NULL;
|
||||||
NTSTATUS status = NtGetNextThread(m->Handle, hThread, THREAD_QUERY_INFORMATION, 0, 0, &nNextThread);
|
NTSTATUS status = NtGetNextThread(m->Handle, hThread, THREAD_QUERY_INFORMATION | THREAD_SUSPEND_RESUME, 0, 0, &nNextThread);
|
||||||
if(hThread) NtClose(hThread);
|
if (hThread) NtClose(hThread);
|
||||||
if (!NT_SUCCESS(status))
|
if (!NT_SUCCESS(status))
|
||||||
break;
|
break;
|
||||||
hThread = nNextThread;
|
hThread = nNextThread;
|
||||||
|
|
||||||
ULONG SuspendCount = 0;
|
ULONG SuspendCount = 0;
|
||||||
status = NtQueryInformationThread(hThread, (THREADINFOCLASS)35/*ThreadSuspendCount*/, &SuspendCount, sizeof(ULONG), NULL);
|
status = NtQueryInformationThread(hThread, (THREADINFOCLASS)35/*ThreadSuspendCount*/, &SuspendCount, sizeof(ULONG), NULL);
|
||||||
|
if (status == STATUS_INVALID_INFO_CLASS) { // windows 7
|
||||||
|
SuspendCount = SuspendThread(hThread);
|
||||||
|
ResumeThread(hThread);
|
||||||
|
}
|
||||||
if (SuspendCount == 0) {
|
if (SuspendCount == 0) {
|
||||||
isSuspended = false;
|
isSuspended = false;
|
||||||
NtClose(hThread);
|
NtClose(hThread);
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#define VERSION_MJR 1
|
#define VERSION_MJR 1
|
||||||
#define VERSION_MIN 10
|
#define VERSION_MIN 10
|
||||||
#define VERSION_REV 2
|
#define VERSION_REV 2
|
||||||
#define VERSION_UPD 6
|
#define VERSION_UPD 7
|
||||||
|
|
||||||
#ifndef STR
|
#ifndef STR
|
||||||
#define STR2(X) #X
|
#define STR2(X) #X
|
||||||
|
|
Loading…
Reference in New Issue