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

Commit bf42c724 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

libidmap2: track libziparchive API change.

Bug: http://b/129068177
Test: treehugger
Change-Id: Id1e855d17cde15b2db37df5e192e2011c60eaebe
parent 4d450edb
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());
  }