Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d85be2e authored by Elliott Hughes's avatar Elliott Hughes Committed by Android (Google) Code Review
Browse files

Merge "libidmap2: track libziparchive API change." into qt-dev-plus-aosp

parents 161b694c bf42c724
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ ZipFile::~ZipFile() {

std::unique_ptr<const MemoryChunk> ZipFile::Uncompress(const std::string& entryPath) const {
  ::ZipEntry entry;
  int32_t status = ::FindEntry(handle_, ::ZipString(entryPath.c_str()), &entry);
  int32_t status = ::FindEntry(handle_, entryPath, &entry);
  if (status != 0) {
    return nullptr;
  }
@@ -59,7 +59,7 @@ std::unique_ptr<const MemoryChunk> ZipFile::Uncompress(const std::string& entryP

Result<uint32_t> ZipFile::Crc(const std::string& entryPath) const {
  ::ZipEntry entry;
  int32_t status = ::FindEntry(handle_, ::ZipString(entryPath.c_str()), &entry);
  int32_t status = ::FindEntry(handle_, entryPath, &entry);
  if (status != 0) {
    return Error("failed to find zip entry %s", entryPath.c_str());
  }