diff --git a/Sandboxie/apps/common/BoxOrder.c b/Sandboxie/apps/common/BoxOrder.c index e99a65b6..7bad05aa 100644 --- a/Sandboxie/apps/common/BoxOrder.c +++ b/Sandboxie/apps/common/BoxOrder.c @@ -325,7 +325,7 @@ _FX void BoxOrder_ReadMissing(BOX_ORDER_ENTRY *parent) box_index = -1; while (1) { box_index = SbieApi_EnumBoxesEx( - box_index | CONF_GET_NO_TEMPLS, work_name, TRUE); + box_index, work_name, TRUE); if (box_index == -1) break; if (SbieApi_IsBoxEnabled(work_name) == 0) @@ -342,7 +342,7 @@ _FX void BoxOrder_ReadMissing(BOX_ORDER_ENTRY *parent) while (name_index < box_count) { name = &all_names[name_index * 34]; box_index = SbieApi_EnumBoxesEx( - box_index | CONF_GET_NO_TEMPLS, name, TRUE); + box_index, name, TRUE); if (box_index == -1) break; if (SbieApi_IsBoxEnabled(name) == 0) diff --git a/Sandboxie/apps/control/Boxes.cpp b/Sandboxie/apps/control/Boxes.cpp index fbc51596..3cf2a9b3 100644 --- a/Sandboxie/apps/control/Boxes.cpp +++ b/Sandboxie/apps/control/Boxes.cpp @@ -95,7 +95,7 @@ void CBoxes::ReloadBoxes() name[0] = L'\0'; else { index = SbieApi_EnumBoxesEx( - index | CONF_GET_NO_TEMPLS, name, TRUE); + index, name, TRUE); if (index == -1) break; LONG rc = SbieApi_IsBoxEnabled(name); diff --git a/Sandboxie/apps/ini/query.c b/Sandboxie/apps/ini/query.c index e93e801c..8323ebea 100644 --- a/Sandboxie/apps/ini/query.c +++ b/Sandboxie/apps/ini/query.c @@ -48,7 +48,7 @@ void DoListSections(void) WCHAR section_name[34]; index = SbieApi_EnumBoxesEx( - index | CONF_GET_NO_TEMPLS, section_name, TRUE); + index, section_name, TRUE); if (index == -1) break; diff --git a/Sandboxie/core/dll/sbieapi.c b/Sandboxie/core/dll/sbieapi.c index 567b8d7b..5ca35795 100644 --- a/Sandboxie/core/dll/sbieapi.c +++ b/Sandboxie/core/dll/sbieapi.c @@ -1295,7 +1295,7 @@ _FX LONG SbieApi_EnumBoxesEx( LONG rc; while (1) { ++index; - rc = SbieApi_QueryConf(NULL, NULL, index | CONF_GET_NO_EXPAND, + rc = SbieApi_QueryConf(NULL, NULL, index | CONF_GET_NO_TEMPLS | CONF_GET_NO_EXPAND, box_name, sizeof(WCHAR) * 34); if (rc == STATUS_BUFFER_TOO_SMALL) continue;