VirtualBox

忽略:
時間撮記:
2014-2-21 下午07:53:11 (11 年 以前)
作者:
vboxsync
訊息:

6813 - src-client/GuestDirectoryImpl.cpp - changes backed out due to error on winrel clbr 92400

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Main/src-client/GuestDirectoryImpl.cpp

    r50547 r50548  
    143143}
    144144
    145 // implementation of private wrapped getters/setters for attributes
     145// implementation of public getters/setters for attributes
    146146/////////////////////////////////////////////////////////////////////////////
    147147
    148 HRESULT GuestDirectory::getDirectoryName(com::Utf8Str &aDirectoryName)
    149 {
    150     LogFlowThisFuncEnter();
     148STDMETHODIMP GuestDirectory::COMGETTER(DirectoryName)(BSTR *aName)
     149{
     150    LogFlowThisFuncEnter();
     151
     152    CheckComArgOutPointerValid(aName);
     153
     154    AutoCaller autoCaller(this);
     155    if (FAILED(autoCaller.rc())) return autoCaller.rc();
    151156
    152157    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    153158
    154     aDirectoryName = mData.mOpenInfo.mPath;
     159    mData.mOpenInfo.mPath.cloneTo(aName);
    155160
    156161    return S_OK;
    157162}
    158163
    159 HRESULT GuestDirectory::getFilter(com::Utf8Str &aFilter)
    160 {
    161     LogFlowThisFuncEnter();
     164STDMETHODIMP GuestDirectory::COMGETTER(Filter)(BSTR *aFilter)
     165{
     166    LogFlowThisFuncEnter();
     167
     168    CheckComArgOutPointerValid(aFilter);
     169
     170    AutoCaller autoCaller(this);
     171    if (FAILED(autoCaller.rc())) return autoCaller.rc();
    162172
    163173    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    164174
    165     aFilter = mData.mOpenInfo.mFilter;
     175    mData.mOpenInfo.mFilter.cloneTo(aFilter);
    166176
    167177    return S_OK;
     
    219229
    220230/* static */
    221 Utf8Str GuestDirectory::i_guestErrorToString(int guestRc)
     231Utf8Str GuestDirectory::guestErrorToString(int guestRc)
    222232{
    223233    Utf8Str strError;
     
    253263
    254264/* static */
    255 HRESULT GuestDirectory::i_setErrorExternal(VirtualBoxBase *pInterface, int guestRc)
     265HRESULT GuestDirectory::setErrorExternal(VirtualBoxBase *pInterface, int guestRc)
    256266{
    257267    AssertPtr(pInterface);
    258268    AssertMsg(RT_FAILURE(guestRc), ("Guest rc does not indicate a failure when setting error\n"));
    259269
    260     return pInterface->setError(VBOX_E_IPRT_ERROR, GuestDirectory::i_guestErrorToString(guestRc).c_str());
     270    return pInterface->setError(VBOX_E_IPRT_ERROR, GuestDirectory::guestErrorToString(guestRc).c_str());
    261271}
    262272
    263273// implementation of public methods
    264274/////////////////////////////////////////////////////////////////////////////
    265 HRESULT GuestDirectory::close()
     275
     276STDMETHODIMP GuestDirectory::Close(void)
    266277{
    267278#ifndef VBOX_WITH_GUEST_CONTROL
     
    308319}
    309320
    310 HRESULT GuestDirectory::read(ComPtr<IFsObjInfo> &aObjInfo)
     321STDMETHODIMP GuestDirectory::Read(IFsObjInfo **aInfo)
    311322{
    312323#ifndef VBOX_WITH_GUEST_CONTROL
     
    359370                {
    360371                    /* Return info object to the caller. */
    361                     hr2 = pFsObjInfo.queryInterfaceTo(aObjInfo.asOutParam());
     372                    hr2 = pFsObjInfo.queryInterfaceTo(aInfo);
    362373                    if (FAILED(hr2))
    363374                        rc = VERR_COM_UNEXPECTED;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette