diff --git a/lib/ResourceFinder.js b/lib/ResourceFinder.js index e474f6c..50a265d 100644 --- a/lib/ResourceFinder.js +++ b/lib/ResourceFinder.js @@ -99,6 +99,8 @@ ResourceFinder.prototype.processResourceTable = function(resourceBuffer) { if (size != bb.limit) { throw new Error("The buffer size not matches to the resource table size."); } + + bb.offset = headerSize; var realStringPoolCount = 0, realPackageCount = 0; @@ -511,4 +513,4 @@ ResourceFinder.prototype.putIntoMap = function(resId, value) { this.responseMap[resId.toUpperCase()] = valueList; }; -module.exports = ResourceFinder; \ No newline at end of file +module.exports = ResourceFinder;