儲存庫 vbox 的更動 12343
- 時間撮記:
- 2008-9-10 上午10:54:02 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/Storage/VBoxHDD-new.cpp
r12329 r12343 181 181 char *pszPluginName; 182 182 183 rc = RTPath SharedLibs(szSharedLibPath, sizeof(szSharedLibPath));183 rc = RTPathAppPrivateArch(szSharedLibPath, sizeof(szSharedLibPath)); 184 184 if (RT_FAILURE(rc)) 185 185 return rc; … … 667 667 /* Then enumerate plugin backends. */ 668 668 char szPath[RTPATH_MAX]; 669 rc = RTPath SharedLibs(szPath, sizeof(szPath));669 rc = RTPathAppPrivateArch(szPath, sizeof(szPath)); 670 670 if (RT_FAILURE(rc)) 671 671 break; … … 686 686 break; 687 687 688 PRTDIRENTRY pPluginDirEntry = NULL;688 PRTDIRENTRYEX pPluginDirEntry = NULL; 689 689 unsigned cbPluginDirEntry = sizeof(RTDIRENTRY); 690 pPluginDirEntry = (PRTDIRENTRY )RTMemAllocZ(sizeof(RTDIRENTRY));690 pPluginDirEntry = (PRTDIRENTRYEX)RTMemAllocZ(sizeof(RTDIRENTRY)); 691 691 if (!pPluginDirEntry) 692 692 { … … 695 695 } 696 696 697 while ((rc = RTDirRead (pPluginDir, pPluginDirEntry, &cbPluginDirEntry)) != VERR_NO_MORE_FILES)697 while ((rc = RTDirReadEx(pPluginDir, pPluginDirEntry, &cbPluginDirEntry, RTFSOBJATTRADD_NOTHING)) != VERR_NO_MORE_FILES) 698 698 { 699 699 RTLDRMOD hPlugin = NIL_RTLDRMOD; … … 706 706 /* allocate new buffer. */ 707 707 RTMemFree(pPluginDirEntry); 708 pPluginDirEntry = (PRTDIRENTRY )RTMemAllocZ(cbPluginDirEntry);708 pPluginDirEntry = (PRTDIRENTRYEX)RTMemAllocZ(cbPluginDirEntry); 709 709 /* Retry. */ 710 rc = RTDirRead (pPluginDir, pPluginDirEntry, &cbPluginDirEntry);710 rc = RTDirReadEx(pPluginDir, pPluginDirEntry, &cbPluginDirEntry, RTFSOBJATTRADD_NOTHING); 711 711 if (RT_FAILURE(rc)) 712 712 break; … … 716 716 717 717 /* We got the new entry. */ 718 if ( pPluginDirEntry->enmType != RTDIRENTRYTYPE_FILE)718 if (!RTFS_IS_FILE(pPluginDirEntry->Info.Attr.fMode)) 719 719 continue; 720 720 … … 952 952 /* Then check if plugin backends support this file format. */ 953 953 char szPath[RTPATH_MAX]; 954 rc = RTPath SharedLibs(szPath, sizeof(szPath));954 rc = RTPathAppPrivateArch(szPath, sizeof(szPath)); 955 955 if (RT_FAILURE(rc)) 956 956 break; … … 971 971 break; 972 972 973 PRTDIRENTRY pPluginDirEntry = NULL;973 PRTDIRENTRYEX pPluginDirEntry = NULL; 974 974 unsigned cbPluginDirEntry = sizeof(RTDIRENTRY); 975 pPluginDirEntry = (PRTDIRENTRY )RTMemAllocZ(sizeof(RTDIRENTRY));975 pPluginDirEntry = (PRTDIRENTRYEX)RTMemAllocZ(sizeof(RTDIRENTRY)); 976 976 if (!pPluginDirEntry) 977 977 { … … 980 980 } 981 981 982 while ((rc = RTDirRead (pPluginDir, pPluginDirEntry, &cbPluginDirEntry)) != VERR_NO_MORE_FILES)982 while ((rc = RTDirReadEx(pPluginDir, pPluginDirEntry, &cbPluginDirEntry, RTFSOBJATTRADD_NOTHING)) != VERR_NO_MORE_FILES) 983 983 { 984 984 RTLDRMOD hPlugin = NIL_RTLDRMOD; … … 991 991 /* allocate new buffer. */ 992 992 RTMemFree(pPluginDirEntry); 993 pPluginDirEntry = (PRTDIRENTRY )RTMemAllocZ(cbPluginDirEntry);993 pPluginDirEntry = (PRTDIRENTRYEX)RTMemAllocZ(cbPluginDirEntry); 994 994 /* Retry. */ 995 rc = RTDirRead (pPluginDir, pPluginDirEntry, &cbPluginDirEntry);995 rc = RTDirReadEx(pPluginDir, pPluginDirEntry, &cbPluginDirEntry, RTFSOBJATTRADD_NOTHING); 996 996 if (RT_FAILURE(rc)) 997 997 break; … … 1001 1001 1002 1002 /* We got the new entry. */ 1003 if ( pPluginDirEntry->enmType != RTDIRENTRYTYPE_FILE)1003 if (!RTFS_IS_FILE(pPluginDirEntry->Info.Attr.fMode)) 1004 1004 continue; 1005 1005
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器