VirtualBox

Ignore:
Timestamp:
Nov 30, 2022 4:59:23 PM (2 years ago)
Author:
vboxsync
Message:

DnD/Main: Added a dedicated COM error for drag and drop operations (VBOX_E_DND_ERROR).

File:
1 edited

Legend:

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

    r97717 r97719  
    348348
    349349    if (RT_FAILURE(vrc))
    350         hrc = VBOX_E_IPRT_ERROR;
     350        hrc = VBOX_E_DND_ERROR;
    351351
    352352    if (SUCCEEDED(hrc))
     
    429429
    430430    if (RT_FAILURE(vrc))
    431         hrc = VBOX_E_IPRT_ERROR;
     431        hrc = VBOX_E_DND_ERROR;
    432432
    433433    if (SUCCEEDED(hrc))
     
    470470
    471471    if (RT_FAILURE(vrc))
    472         hrc = VBOX_E_IPRT_ERROR;
     472        hrc = VBOX_E_DND_ERROR;
    473473
    474474    LogFlowFunc(("hrc=%Rhrc\n", hrc));
     
    563563                    else
    564564                    {
    565                         /** @todo r=bird: This isn't an IPRT error, is it?   */
    566565                        if (lstFormats.size() == 0)
    567                             hr = setError(VBOX_E_IPRT_ERROR, tr("Guest accepted drop, but did not specify the format"));
     566                            hr = setError(VBOX_E_DND_ERROR, tr("Guest accepted drop, but did not specify the format"));
    568567                        else
    569                             hr = setError(VBOX_E_IPRT_ERROR, tr("Guest accepted drop, but returned more than one drop format (%zu formats)"),
     568                            hr = setError(VBOX_E_DND_ERROR, tr("Guest accepted drop, but returned more than one drop format (%zu formats)"),
    570569                                          lstFormats.size());
    571570                    }
     
    576575            }
    577576            else
    578                 hr = setErrorBoth(VBOX_E_IPRT_ERROR, vrc, tr("Waiting for response of dropped event failed (%Rrc)"), vrc);
     577                hr = setErrorBoth(VBOX_E_DND_ERROR, vrc, tr("Waiting for response of dropped event failed (%Rrc)"), vrc);
    579578        }
    580579        else
    581             hr = setErrorBoth(VBOX_E_IPRT_ERROR, vrc, tr("Sending dropped event to guest failed (%Rrc)"), vrc);
     580            hr = setErrorBoth(VBOX_E_DND_ERROR, vrc, tr("Sending dropped event to guest failed (%Rrc)"), vrc);
    582581    }
    583582    else
     
    16821681        *aVeto = FALSE; /** @todo Implement vetoing. */
    16831682
    1684     HRESULT hrc = RT_SUCCESS(vrc) ? S_OK : VBOX_E_IPRT_ERROR;
     1683    HRESULT hrc = RT_SUCCESS(vrc) ? S_OK : VBOX_E_DND_ERROR;
    16851684
    16861685    LogFlowFunc(("hrc=%Rhrc\n", hrc));
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