儲存庫 vbox 的更動 67412
- 時間撮記:
- 2017-6-14 下午07:59:31 (7 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
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 */
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器