This commit is contained in:
DavidXanatos 2022-06-04 21:33:39 +02:00
parent f0546baae8
commit 5e7191e3f1
4 changed files with 8 additions and 7 deletions

View File

@ -31,6 +31,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- fixed issues with sbie desktop and wndStation affecting acrobat reader [#1863](https://github.com/sandboxie-plus/Sandboxie/issues/1863)
- fixed issues with box grouping [#1921](https://github.com/sandboxie-plus/Sandboxie/issues/1921) [#1920](https://github.com/sandboxie-plus/Sandboxie/issues/1920)
- fixed issues when changing language [#1914](https://github.com/sandboxie-plus/Sandboxie/issues/1914)
- fixed issue with BreakoutFodler [#1908](https://github.com/sandboxie-plus/Sandboxie/issues/1908)

View File

@ -300,7 +300,7 @@ _FX BOOLEAN SbieDll_GetSettingsForName_bool(
//---------------------------------------------------------------------------
_FX BOOLEAN Config_InitPatternList(const WCHAR* boxname, const WCHAR* setting, LIST* list)
_FX BOOLEAN Config_InitPatternList(const WCHAR* boxname, const WCHAR* setting, LIST* list, ULONG flags)
{
WCHAR conf_buf[2048];
@ -310,7 +310,7 @@ _FX BOOLEAN Config_InitPatternList(const WCHAR* boxname, const WCHAR* setting, L
while (1) {
NTSTATUS status = SbieApi_QueryConf(
boxname, setting, index, conf_buf, sizeof(conf_buf) - 16 * sizeof(WCHAR));
boxname, setting, index | flags, conf_buf, sizeof(conf_buf) - 16 * sizeof(WCHAR));
if (!NT_SUCCESS(status))
break;
++index;
@ -600,7 +600,7 @@ BOOLEAN SbieDll_CheckPatternInList(const WCHAR* string, ULONG length, const WCHA
List_Init(&Patterns);
Config_InitPatternList(boxname, setting, &Patterns);
Config_InitPatternList(boxname, setting, &Patterns, CONF_GET_NO_EXPAND);
if (length == 0)
length = wcslen(string);

View File

@ -802,7 +802,7 @@ BOOLEAN Config_MatchImage(
WCHAR* Config_MatchImageAndGetValue(WCHAR* value, const WCHAR* ImageName, ULONG* pMode);
BOOLEAN Config_InitPatternList(const WCHAR* boxname, const WCHAR* setting, LIST* list);
BOOLEAN Config_InitPatternList(const WCHAR* boxname, const WCHAR* setting, LIST* list, ULONG flags);
VOID Config_FreePatternList(LIST* list);

View File

@ -68,9 +68,9 @@ _FX BOOLEAN File_InitFileMigration(void)
for(ULONG i=0; i < NUM_COPY_MODES; i++)
List_Init(&File_MigrationOptions[i]);
Config_InitPatternList(NULL, L"CopyEmpty", &File_MigrationOptions[FILE_COPY_EMPTY]);
Config_InitPatternList(NULL, L"CopyAlways", &File_MigrationOptions[FILE_COPY_CONTENT]);
Config_InitPatternList(NULL, L"DontCopy", &File_MigrationOptions[FILE_DONT_COPY]);
Config_InitPatternList(NULL, L"CopyEmpty", &File_MigrationOptions[FILE_COPY_EMPTY], 0);
Config_InitPatternList(NULL, L"CopyAlways", &File_MigrationOptions[FILE_COPY_CONTENT], 0);
Config_InitPatternList(NULL, L"DontCopy", &File_MigrationOptions[FILE_DONT_COPY], 0);
File_MigrationDenyWrite = Config_GetSettingsForImageName_bool(L"CopyBlockDenyWrite", FALSE);