VirtualBox

Changeset 47836 in vbox


Ignore:
Timestamp:
Aug 19, 2013 9:16:40 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
88106
Message:

Main/IGuestFile: Changed disposition and openMode parameters being wstrings instead of ulongs (related to r88105), matching the IGuestSession::openFile / openFileEx calls.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/GuestFileImpl.h

    r47817 r47836  
    5959     * @{ */
    6060    STDMETHOD(COMGETTER(CreationMode))(ULONG *aCreationMode);
    61     STDMETHOD(COMGETTER(Disposition))(ULONG *aDisposition);
     61    STDMETHOD(COMGETTER(Disposition))(BSTR *aDisposition);
    6262    STDMETHOD(COMGETTER(EventSource))(IEventSource ** aEventSource);
    6363    STDMETHOD(COMGETTER(FileName))(BSTR *aFileName);
    6464    STDMETHOD(COMGETTER(InitialSize))(LONG64 *aInitialSize);
    6565    STDMETHOD(COMGETTER(Offset))(LONG64 *aOffset);
    66     STDMETHOD(COMGETTER(OpenMode))(ULONG *aOpenMode);
     66    STDMETHOD(COMGETTER(OpenMode))(BSTR *aOpenMode);
    6767    STDMETHOD(COMGETTER(Status))(FileStatus_T *aStatus);
    6868
  • trunk/src/VBox/Main/src-client/GuestFileImpl.cpp

    r47817 r47836  
    263263}
    264264
    265 /** @todo For 4.3: Change ULONG* to BSTR* ?*/
    266 STDMETHODIMP GuestFile::COMGETTER(Disposition)(ULONG *aDisposition)
     265STDMETHODIMP GuestFile::COMGETTER(Disposition)(BSTR *aDisposition)
    267266{
    268267#ifndef VBOX_WITH_GUEST_CONTROL
     
    276275    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    277276
    278     uint32_t uDisposition = 0;
    279     /** @todo Fix me! */
    280     *aDisposition = uDisposition;
     277    mData.mOpenInfo.mDisposition.cloneTo(aDisposition);
    281278
    282279    return S_OK;
     
    294291    if (FAILED(autoCaller.rc())) return autoCaller.rc();
    295292
    296     // no need to lock - lifetime constant
     293    /* No need to lock - lifetime constant. */
    297294    mEventSource.queryInterfaceTo(aEventSource);
    298295
     
    355352}
    356353
    357 /** @todo For 4.3: Change ULONG* to BSTR* ?*/
    358 STDMETHODIMP GuestFile::COMGETTER(OpenMode)(ULONG *aOpenMode)
     354STDMETHODIMP GuestFile::COMGETTER(OpenMode)(BSTR *aOpenMode)
    359355{
    360356#ifndef VBOX_WITH_GUEST_CONTROL
     
    368364    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    369365
    370     uint32_t uOpenMode = 0;
    371     /** @todo Fix me! */
    372     *aOpenMode = uOpenMode;
     366    mData.mOpenInfo.mOpenMode.cloneTo(aOpenMode);
    373367
    374368    return S_OK;
Note: See TracChangeset for help on using the changeset viewer.

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