mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-13 23:23:38 +00:00
Fix bzip2 decompression
This commit is contained in:
parent
e59c5c8780
commit
0f92d1de1b
@ -254,7 +254,8 @@ bool BZStream::update(const void *in, size_t size) {
|
||||
}
|
||||
|
||||
uint64_t BZStream::finalize() {
|
||||
update(nullptr, 0, BZ_FINISH);
|
||||
if (mode)
|
||||
update(nullptr, 0, BZ_FINISH);
|
||||
uint64_t total = ((uint64_t) strm.total_out_hi32 << 32) + strm.total_out_lo32;
|
||||
switch(mode) {
|
||||
case 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user