Changeset 67412 in vbox for trunk/src/VBox/Runtime/common/fs/isomaker.cpp
- Timestamp:
- Jun 14, 2017 7:59:31 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/fs/isomaker.cpp
r67399 r67412 3601 3601 { 3602 3602 PRTFSISOMAKERNAME pChild = *ppChild++; 3603 if (pChild-> pszTransNm)3603 if (pChild->cchTransNm) 3604 3604 { 3605 3605 /** @todo TRANS.TBL codeset, currently using UTF-8 which is probably not it. … … 3672 3672 pFile = RTListGetNext(&pIsoMaker->FinalizedFiles, pFile, RTFSISOMAKERFILE, FinalizedEntry); 3673 3673 AssertReturn(pFile, VERR_INTERNAL_ERROR_3); 3674 } while ((offInFile = offUnsigned - pFile->offData) <RT_ALIGN_64(pFile->cbData, RTFSISOMAKER_SECTOR_SIZE));3674 } while ((offInFile = offUnsigned - pFile->offData) >= RT_ALIGN_64(pFile->cbData, RTFSISOMAKER_SECTOR_SIZE)); 3675 3675 } 3676 3676 else … … 3681 3681 pFile = RTListGetPrev(&pIsoMaker->FinalizedFiles, pFile, RTFSISOMAKERFILE, FinalizedEntry); 3682 3682 AssertReturn(pFile, VERR_INTERNAL_ERROR_3); 3683 } while ((offInFile = offUnsigned - pFile->offData) <RT_ALIGN_64(pFile->cbData, RTFSISOMAKER_SECTOR_SIZE));3683 } while ((offInFile = offUnsigned - pFile->offData) >= RT_ALIGN_64(pFile->cbData, RTFSISOMAKER_SECTOR_SIZE)); 3684 3684 } 3685 3685 … … 3702 3702 if (offInFile < pFile->cbData) 3703 3703 { 3704 int rc;3704 int rc; 3705 3705 size_t cbToRead = RT_MIN(cbBuf, pFile->cbData - offInFile); 3706 3706 3707 switch (pFile->enmSrcType) 3707 3708 { … … 3711 3712 rc = RTVfsChainOpenFile(pFile->u.pszSrcPath, RTFILE_O_READ | RTFILE_O_DENY_NONE | RTFILE_O_OPEN, 3712 3713 &pThis->hVfsSrcFile, NULL, NULL); 3713 if (RT_FAILURE(rc)) 3714 return rc; 3714 AssertMsgRCReturn(rc, ("%s -> %Rrc\n", pFile->u.pszSrcPath, rc), rc); 3715 3715 } 3716 3716 rc = RTVfsFileReadAt(pThis->hVfsSrcFile, offInFile, pbBuf, cbToRead, NULL); 3717 AssertRC(rc); 3717 3718 break; 3718 3719 3719 3720 case RTFSISOMAKERSRCTYPE_VFS_FILE: 3720 3721 rc = RTVfsFileReadAt(pFile->u.hVfsFile, offInFile, pbBuf, cbToRead, NULL); 3722 AssertRC(rc); 3721 3723 break; 3722 3724 … … 3725 3727 { 3726 3728 rc = rtFsIsoMakerOutFile_ProduceTransTbl(pThis, pFile); 3727 if (RT_FAILURE(rc)) 3728 return rc; 3729 AssertRCReturn(rc, rc); 3729 3730 } 3730 rc = RTVfsFileReadAt(pFile->u.hVfsFile, offInFile, pbBuf, cbToRead, NULL); 3731 rc = RTVfsFileReadAt(pThis->hVfsSrcFile, offInFile, pbBuf, cbToRead, NULL); 3732 AssertRC(rc); 3731 3733 break; 3732 3734 … … 3742 3744 */ 3743 3745 if ( cbToRead < cbBuf 3746 && (pFile->cbData & RTFSISOMAKER_SECTOR_OFFSET_MASK) 3744 3747 && offInFile + cbToRead == pFile->cbData) 3745 3748 { … … 3921 3924 * @param pName The namespace node. 3922 3925 * @param fUnicode Set if the name should be translated to big endian 3923 * UTF-16 / UCS-2, i.e. we're in the joliet namespace.3926 * UTF-16BE / UCS-2BE, i.e. we're in the joliet namespace. 3924 3927 * @param pbBuf The buffer. This is at least pName->cbDirRec bytes big. 3925 3928 */
Note:
See TracChangeset
for help on using the changeset viewer.