VirtualBox

Changeset 56671 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jun 29, 2015 11:14:58 AM (10 years ago)
Author:
vboxsync
Message:

DnD/VBoxClient: Initialize empty format string in ghIsDnDPending(), logging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/draganddrop.cpp

    r56651 r56671  
    19611961    {
    19621962        strFormats   = gX11->xAtomListToString(m_lstFormats);
     1963        if (strFormats.isEmpty())
     1964            strFormats = "\r\n";        /** @todo If empty, IOCTL fails with VERR_ACCESS_DENIED. */
    19631965        uDefAction   = DND_COPY_ACTION; /** @todo Handle default action! */
    19641966        uAllActions  = DND_COPY_ACTION; /** @todo Ditto. */
     
    19691971
    19701972    rc2 = VbglR3DnDGHAcknowledgePending(&m_dndCtx, uDefAction, uAllActions, strFormats.c_str());
    1971     LogFlowThisFunc(("Pending status to host: uClientID=%RU32, uDefAction=0x%x, allActions=0x%x, strFormats=%s, rc=%Rrc\n",
     1973    LogFlowThisFunc(("uClientID=%RU32, uDefAction=0x%x, allActions=0x%x, strFormats=%s, rc=%Rrc\n",
    19721974                     m_dndCtx.uClientID, uDefAction, uAllActions, strFormats.c_str(), rc2));
    1973     if (RT_SUCCESS(rc))
    1974         rc = rc2;
     1975    if (RT_FAILURE(rc2))
     1976    {
     1977        logError("Error reporting pending drag and drop operation status to host: %Rrc\n", rc2);
     1978        if (RT_SUCCESS(rc))
     1979            rc = rc2;
     1980    }
    19751981
    19761982    if (RT_FAILURE(rc)) /* Start over on failure. */
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