commands/chkdeps/sf_pgcompr.cpp
changeset 89 ce94bcf3f672
parent 0 7f656887cf89
equal deleted inserted replaced
86:849a0b46c767 89:ce94bcf3f672
   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