VirtualBox

Changeset 85587 in vbox for trunk


Ignore:
Timestamp:
Jul 31, 2020 5:14:22 PM (4 years ago)
Author:
vboxsync
Message:

DnD/VbglR3: Fixes for sending raw meta data to host.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibDragAndDrop.cpp

    r85585 r85587  
    16671667    RT_ZERO(dataHdr);
    16681668
    1669     /* For raw data only the total size is required to be specified. */
     1669    dataHdr.cbMeta  = (uint32_t)cbData;
    16701670    dataHdr.cbTotal = cbData;
    16711671
     
    17571757    LogFlowFunc(("pszFormat=%s, pvData=%p, cbData=%RU32\n", pszFormat, pvData, cbData));
    17581758
     1759    LogRel2(("DnD: Sending %RU32 bytes meta data in format '%s'\n", cbData, pszFormat));
     1760
    17591761    int rc;
    17601762    if (DnDMIMEHasFileURLs(pszFormat, strlen(pszFormat)))
     
    17761778            DnDTransferListDestroy(&lstTransfer);
    17771779        }
    1778 
    1779         if (RT_FAILURE(rc))
    1780             LogRel(("DnD: Sending guest meta data to host failed with %Rrc\n", rc));
    17811780    }
    17821781    else
     
    17851784    if (RT_FAILURE(rc))
    17861785    {
    1787         int rc2 = VbglR3DnDGHSendError(pCtx, rc);
    1788         if (RT_FAILURE(rc2))
    1789             LogFlowFunc(("Unable to send error (%Rrc) to host, rc=%Rrc\n", rc, rc2));
     1786        LogRel(("DnD: Sending data failed with rc=%Rrc\n", rc));
     1787
     1788        if (rc != VERR_CANCELLED)
     1789        {
     1790            int rc2 = VbglR3DnDGHSendError(pCtx, rc);
     1791            if (RT_FAILURE(rc2))
     1792                LogFlowFunc(("Unable to send error (%Rrc) to host, rc=%Rrc\n", rc, rc2));
     1793        }
    17901794    }
    17911795
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