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:
JesusFreke@JesusFreke.com 2009-08-22 22:00:50 +00:00
parent 66146deb47
commit f49271eb8f

View File

@ -62,7 +62,7 @@ public class MapItem extends Item<MapItem> {
Section[] sections = dexFile.getOrderedSections(); Section[] sections = dexFile.getOrderedSections();
//the list returned by getOrderedSections doesn't contain the header //the list returned by getOrderedSections doesn't contain the header
//or map section, so add 2 to the length //or map section, so add 2 to the length
return offset + (sections.length + 2) * 12; return offset + 4 + (sections.length + 2) * 12;
} }
/** {@inheritDoc} */ /** {@inheritDoc} */