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

Commit 8efc3c4b authored by Pawan Wagh's avatar Pawan Wagh
Browse files

Fix usage of ZipFileRO::getEntryInfo

Extra field size has been added to getEntryInfo. Adding parameter to call.

Test: mma libandroidfw
Bug: 334109171
Change-Id: I38f0884c69c7b3b2871f264e41971a86c61bda65
parent fbe2bd37
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1335,7 +1335,8 @@ bool BootAnimation::preloadZip(Animation& animation) {
                if (path.string() == animation.parts[j].path.c_str()) {
                    uint16_t method;
                    // supports only stored png files
                    if (zip->getEntryInfo(entry, &method, nullptr, nullptr, nullptr, nullptr, nullptr)) {
                    if (zip->getEntryInfo(entry, &method, nullptr, nullptr, nullptr, nullptr,
                            nullptr, nullptr)) {
                        if (method == ZipFileRO::kCompressStored) {
                            FileMap* map = zip->createEntryFileMap(entry);
                            if (map) {