106 size = BytePairDecompress(aTarget, aLength, iNextPage, iIndexTable[aPageNum], nextPage); |
106 size = BytePairDecompress(aTarget, aLength, iNextPage, iIndexTable[aPageNum], nextPage); |
107 |
107 |
108 User::LeaveIfError(size); |
108 User::LeaveIfError(size); |
109 if (size != aLength) |
109 if (size != aLength) |
110 LEAVE_FAILURE(KErrCorrupt); |
110 LEAVE_FAILURE(KErrCorrupt); |
111 if (iNextPage + iIndexTable[aPageNum] != nextPage) |
111 // if (iNextPage + iIndexTable[aPageNum] != nextPage) |
112 StaticLeaveIfErr(KErrCorrupt, _L("nextPage is %x, expected %x for pagenum %d"), nextPage, iNextPage + iIndexTable[aPageNum], aPageNum); |
112 // StaticLeaveIfErr(KErrCorrupt, _L("nextPage is %x, expected %x for pagenum %d"), nextPage, iNextPage + iIndexTable[aPageNum], aPageNum); |
113 // LEAVE_FAILURE(KErrCorrupt); |
113 // LEAVE_FAILURE(KErrCorrupt); |
114 |
|
115 //TOMSCI IoUtils::CCommandBase::Static().Printf(_L("nextPage is 0x%08x, iNextPage+%d\r\n"), nextPage, nextPage - iNextPage); |
|
116 |
114 |
117 // If a memmove() was provided, use that to copy the data to its final target |
115 // If a memmove() was provided, use that to copy the data to its final target |
118 if (aMemMoveFn) |
116 if (aMemMoveFn) |
119 aMemMoveFn(aTarget, iPageBuf, size); |
117 aMemMoveFn(aTarget, iPageBuf, size); |
120 |
118 |