Fixed browse for folder issue in resource access

fixes #4007
This commit is contained in:
offhub 2024-10-31 15:49:03 +03:00
parent 5c9fdbfc4e
commit f80d34245a
No known key found for this signature in database
GPG Key ID: 7B12A8941851DA59
2 changed files with 5 additions and 1 deletions

View File

@ -9,7 +9,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
- fixed Sign the .tmp file that gets dropped when installing or updating Sandboxie Plus [#2643](https://github.com/sandboxie-plus/Sandboxie/issues/2643)
- fixed Files Resource Access - Browse for Folder - allows access to excluded folders [#4007](https://github.com/sandboxie-plus/Sandboxie/issues/4007)

View File

@ -379,6 +379,10 @@ void COptionsWindow::OnBrowseFolder()
if (Value.isEmpty())
return;
// Add a trailing backslash if it does not exist
if (!Value.endsWith("\\"))
Value.append("\\");
AddAccessEntry(eFile, eOpen, "", Value);
OnAccessChanged();