VirtualBox

Ignore:
Timestamp:
Jul 30, 2020 3:16:09 PM (4 years ago)
Author:
vboxsync
Message:

DnD/Main: Cleaned up error path handling a bit.

File:
1 edited

Legend:

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

    r85559 r85564  
    795795
    796796    if (RT_FAILURE(rc))
     797    {
    797798        LogRel(("DnD: Sending data to guest failed with %Rrc\n", rc));
     799        sendCancel();
     800    }
    798801
    799802    /* Reset state. */
     
    14861489            rc2 = pCtx->pResp->setProgress(100, DND_PROGRESS_CANCELLED, VINF_SUCCESS);
    14871490            AssertRC(rc2);
     1491
     1492            /* Cancelling is not an error, just set success here. */
     1493            rc  = VINF_SUCCESS;
    14881494        }
    14891495        else if (rc != VERR_GSTDND_GUEST_ERROR) /* Guest-side error are already handled in the callback. */
     
    14941500            AssertRC(rc2);
    14951501        }
    1496 
    1497         rc = VINF_SUCCESS; /* The error was handled by the setProgress() calls above. */
    14981502    }
    14991503
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