VirtualBox

Ignore:
Timestamp:
Aug 13, 2020 7:36:01 AM (4 years ago)
Author:
vboxsync
Message:

DnD/Main: Don't mix rc and HRESULT in GuestDnD[Source|Target]::init() functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp

    r85742 r85743  
    144144/////////////////////////////////////////////////////////////////////////////
    145145
    146 int GuestDnDTarget::init(const ComObjPtr<Guest>& pGuest)
     146HRESULT GuestDnDTarget::init(const ComObjPtr<Guest>& pGuest)
    147147{
    148148    LogFlowThisFuncEnter();
     
    162162     */
    163163    m_pResp = GuestDnDInst()->response();
    164     AssertPtrReturn(m_pResp, VERR_INVALID_POINTER);
     164    AssertPtrReturn(m_pResp, E_POINTER);
    165165
    166166    /* Confirm a successful initialization when it's the case. */
    167167    autoInitSpan.setSucceeded();
    168168
    169     return VINF_SUCCESS;
     169    return S_OK;
    170170}
    171171
Note: See TracChangeset for help on using the changeset viewer.

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