diff --git a/CHANGELOG.md b/CHANGELOG.md index 225de5d9..c10e1687 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,9 @@ This project adheres to [Semantic Versioning](http://semver.org/). - fixed issue with NtQueryDirectoryObject [#3310](https://github.com/sandboxie-plus/Sandboxie/issues/3310) - fixed Some GUI functions use the wrong box path if the FileRootPath value starts with Volume{GUID} [#3345](https://github.com/sandboxie-plus/Sandboxie/issues/3345) - fixed If a program is run on RAM and Encrypted boxes when the sandbox root folder is not present, the programs will not run [#3349](https://github.com/sandboxie-plus/Sandboxie/issues/3349) +- fixed Process Restrictions enable/disable not working correctly [#3355](https://github.com/sandboxie-plus/Sandboxie/issues/3355) + + ## [1.11.3 / 5.66.3] - 2023-09-27 diff --git a/SandboxiePlus/SandMan/Windows/OptionsNetwork.cpp b/SandboxiePlus/SandMan/Windows/OptionsNetwork.cpp index 777e38d5..a8d1c40b 100644 --- a/SandboxiePlus/SandMan/Windows/OptionsNetwork.cpp +++ b/SandboxiePlus/SandMan/Windows/OptionsNetwork.cpp @@ -141,8 +141,8 @@ void COptionsWindow::LoadBlockINet() for (int i = 0; i < ui.treeGroups->topLevelItemCount(); i++) { QTreeWidgetItem* pGroupItem = ui.treeGroups->topLevelItem(i); - int Mode = GroupToINetMode(pGroupItem->data(0, Qt::UserRole).toString()); - if (Mode == -1) + int GroupMode = GroupToINetMode(pGroupItem->data(0, Qt::UserRole).toString()); + if (GroupMode == -1) continue; for (int j = 0; j < pGroupItem->childCount(); j++) @@ -150,8 +150,8 @@ void COptionsWindow::LoadBlockINet() QString Value = pGroupItem->child(j)->data(0, Qt::UserRole).toString(); QTreeWidgetItem* pItem = new QTreeWidgetItem(); - pItem->setCheckState(0, (Mode & 0x10) != 0 ? Qt::Unchecked : Qt::Checked); - Mode &= ~0x10; + pItem->setCheckState(0, (GroupMode & 0x10) != 0 ? Qt::Unchecked : Qt::Checked); + int Mode = GroupMode & ~0x10; SetProgramItem(Value, pItem, 0);