儲存庫 vbox 的更動 18275
- 時間撮記:
- 2009-3-25 下午07:18:22 (16 年 以前)
- 位置:
- trunk/src/VBox/Main
- 檔案:
-
- 修改 3 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/MediumImpl.cpp
r16867 r18275 115 115 case MediaState_LockedWrite: 116 116 { 117 rc = queryInfo( );117 rc = queryInfo(true /* fWrite */); 118 118 break; 119 119 } … … 715 715 * size and description will be updated with the current information. 716 716 * 717 * The fWrite parameter is ignored in this variant, since this always opens 718 * the medium read-only; it is however acknowledged by HardDisk::queryInfo(), 719 * which overrides this implementation for hard disk media. 720 * 717 721 * @note This method may block during a system I/O call that checks image file 718 722 * accessibility. … … 720 724 * @note Locks this object for writing. 721 725 */ 722 HRESULT MediumBase::queryInfo( )726 HRESULT MediumBase::queryInfo(bool fWrite) 723 727 { 724 728 AutoWriteLock alock (this); … … 962 966 963 967 /* get all the information about the medium from the file */ 964 rc = queryInfo( );968 rc = queryInfo(true); 965 969 if (SUCCEEDED (rc)) 966 970 { -
trunk/src/VBox/Main/include/HardDiskImpl.h
r18177 r18275 256 256 HRESULT setFormat (CBSTR aFormat); 257 257 258 HRESULT queryInfo(bool fWrite);258 virtual HRESULT queryInfo(bool fWrite); 259 259 260 260 HRESULT canClose(); -
trunk/src/VBox/Main/include/MediumImpl.h
r17911 r18275 143 143 144 144 virtual HRESULT setLocation (CBSTR aLocation); 145 virtual HRESULT queryInfo( );145 virtual HRESULT queryInfo(bool fWrite); 146 146 147 147 /**
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器