Skip to content

Commit

Permalink
1.14.8
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidXanatos committed Sep 7, 2024
1 parent fdff4a9 commit bfcdc37
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).


## [1.14.8 / 5.69.8] - 2024-09-??

### Changed
- allowed users to import/export boxes with .zip files.

### Fixed
- fixed a cert issue



## [1.14.7 / 5.69.7] - 2024-09-05

### Added
Expand All @@ -23,6 +34,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- fixed NtQueryDirectoryObject (should not return "STATUS_MORE_ENTRIES") as this is an easy sandbox detection [#4201](https://github.com/sandboxie-plus/Sandboxie/issues/4201)



## [1.14.6 / 5.69.6] - 2024-07-30

### Added
Expand Down
9 changes: 5 additions & 4 deletions SandboxiePlus/MiscHelpers/Archive/Archive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,21 +255,22 @@ bool CArchive::Update(QMap<int, QIODevice*> *FileList, bool bDelete, const SComp
*/
const wchar_t *names[] =
{
L"s",
L"x",
//L"mt",
L"s",
L"he"
};
const int kNumProps = sizeof(names) / sizeof(names[0]);
NWindows::NCOM::CPropVariant values[kNumProps] =
{
(Params ? Params->bSolid : false), // solid mode OFF
(UInt32)(Params ? Params->iLevel : 5), // compression level = 9 - ultra
//(UInt32)8, // set number of CPU threads
true // file name encryption (7z only)
// 7z only
(Params ? Params->bSolid : false), // solid mode OFF
(Params ? Params->b7z : false) // file name encryption
};

if(setProperties->SetProperties(names, values, kNumProps) != S_OK)
if(setProperties->SetProperties(names, values, Params->b7z ? kNumProps : (kNumProps - 2)) != S_OK)
{
TRACE(L"ISetProperties failed");
Q_ASSERT(0);
Expand Down
1 change: 1 addition & 0 deletions SandboxiePlus/MiscHelpers/Archive/Archive.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ struct SCompressParams
{
int iLevel = 0;
bool bSolid = false;
bool b7z = false;
};

class MISCHELPERS_EXPORT CArchive
Expand Down
3 changes: 3 additions & 0 deletions SandboxiePlus/SandMan/SbiePlusAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,12 @@ void CSandBoxPlus::ExportBoxAsync(const CSbieProgressPtr& pProgress, const QStri
if (vParams.contains("password"))
Archive.SetPassword(vParams["password"].toString());

SArcInfo Info = GetArcInfo(ExportPath);

SCompressParams Params;
Params.iLevel = vParams["level"].toInt();
Params.bSolid = vParams["solid"].toBool();
Params.b7z = Info.FormatIndex == 1;

SB_STATUS Status = SB_OK;
if (!Archive.Update(&Files, true, &Params, &Attributes))
Expand Down

0 comments on commit bfcdc37

Please sign in to comment.