diff options
author | Saturn&Eric <[email protected]> | 2022-03-19 09:49:09 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2022-03-19 09:49:09 +0000 |
commit | 6b7cc11484ac705e1323169c44c08a935ba0ffe2 (patch) | |
tree | a4d29945fb91f72ba4cc06b55179c1ff3917a289 /src/core/function/ArchiveFileOperator.cpp | |
parent | Merge pull request #49 from saturneric/develop-2.0.5 (diff) | |
parent | <fix>(ui): fix error in IMAPFolder (diff) | |
download | GpgFrontend-6b7cc11484ac705e1323169c44c08a935ba0ffe2.tar.gz GpgFrontend-6b7cc11484ac705e1323169c44c08a935ba0ffe2.zip |
Merge pull request #50 from saturneric/develop-2.0.5v2.0.5
v2.0.5.1
Diffstat (limited to 'src/core/function/ArchiveFileOperator.cpp')
-rw-r--r-- | src/core/function/ArchiveFileOperator.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/function/ArchiveFileOperator.cpp b/src/core/function/ArchiveFileOperator.cpp index 1a1ffaec..17f29df1 100644 --- a/src/core/function/ArchiveFileOperator.cpp +++ b/src/core/function/ArchiveFileOperator.cpp @@ -231,11 +231,11 @@ void GpgFrontend::ArchiveFileOperator::ExtractArchive( LOG(ERROR) << "cannot read from stdin"; } #ifdef WINDOWS - if ((r = archive_read_open_filename_w(a, archive_path.wstring().c_str(), - 10240))) { + if (archive_read_open_filename_w(a, archive_path.wstring().c_str(), + 10240) != ARCHIVE_OK) { #else - if ((r = archive_read_open_filename(a, archive_path.u8string().c_str(), - 10240))) { + if (archive_read_open_filename(a, archive_path.u8string().c_str(), + 10240) != ARCHIVE_OK) { #endif LOG(ERROR) << "archive_read_open_filename() failed: " << archive_error_string(a); |