VirtualBox

Changeset 54858 in vbox


Ignore:
Timestamp:
Mar 20, 2015 8:25:45 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
99065
Message:

Additions/VBoxClient: do not display an error if the clipboard or drag and drop services are not present on the host.

Location:
trunk/src/VBox/Additions
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibClipboard.cpp

    r44529 r54858  
    5858            *pu32ClientId = Info.u32ClientID;
    5959    }
     60    if (rc == VERR_HGCM_SERVICE_NOT_FOUND)
     61        rc = VINF_PERMISSION_DENIED;
    6062    return rc;
    6163}
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibDragAndDrop.cpp

    r52800 r54858  
    724724            *pu32ClientId = Info.u32ClientID;
    725725    }
     726    if (rc == VERR_HGCM_SERVICE_NOT_FOUND)
     727        rc = VINF_PERMISSION_DENIED;
    726728    return rc;
    727729}
  • trunk/src/VBox/Additions/x11/VBoxClient/clipboard.cpp

    r54008 r54858  
    202202    }
    203203
    204     if (RT_FAILURE(rc) && g_ctx.pBackend)
     204    if (rc != VINF_SUCCESS && g_ctx.pBackend)
    205205        ClipDestructX11(g_ctx.pBackend);
    206206    LogRelFlowFunc(("g_ctx.client=%u rc=%Rrc\n", g_ctx.client, rc));
     
    293293        VBClFatalError(("Failed to connect to the VirtualBox kernel service, rc=%Rrc\n", rc));
    294294    rc = vboxClipboardConnect();
    295     if (RT_SUCCESS(rc))
     295    if (rc == VINF_SUCCESS)
    296296        rc = vboxClipboardMain();
    297297    if (rc == VERR_NOT_SUPPORTED)
  • trunk/src/VBox/Additions/x11/VBoxClient/draganddrop.cpp

    r54008 r54858  
    22552255    int rc = VbglR3DnDConnect(&uClientID);
    22562256    if (RT_FAILURE(rc))
    2257     {
    22582257        LogRel(("DnD: Unable to connect to drag'n drop service, rc=%Rrc\n", rc));
     2258    if (rc != VINF_SUCCESS)
    22592259        return rc;
    2260     }
    22612260
    22622261    /* Number of invalid messages skipped in a row. */
Note: See TracChangeset for help on using the changeset viewer.

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