mirror of
https://github.com/revanced/smali.git
synced 2025-05-04 08:34:25 +02:00
Include the size of the map header during placement
git-svn-id: https://smali.googlecode.com/svn/trunk@403 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
66146deb47
commit
f49271eb8f
@ -62,7 +62,7 @@ public class MapItem extends Item<MapItem> {
|
||||
Section[] sections = dexFile.getOrderedSections();
|
||||
//the list returned by getOrderedSections doesn't contain the header
|
||||
//or map section, so add 2 to the length
|
||||
return offset + (sections.length + 2) * 12;
|
||||
return offset + 4 + (sections.length + 2) * 12;
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
|
Loading…
x
Reference in New Issue
Block a user