VirtualBox

Changeset 105630 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Aug 8, 2024 4:48:33 PM (7 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164315
Message:

Shared Clipboard/Transfers: Be a bit more informative in the release log why file transfers do not work when reporting formats to the guest. bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp

    r104236 r105630  
    15321532#ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
    15331533    bool fSkipTransfers = false;
    1534     if (!(g_fTransferMode & VBOX_SHCL_TRANSFER_MODE_F_ENABLED))
    1535     {
    1536         LogRel2(("Shared Clipboard: File transfers are disabled, skipping reporting those to the guest\n"));
    1537         fSkipTransfers = true;
    1538     }
    1539     else if (!(pClient->State.fGuestFeatures0 & VBOX_SHCL_GF_0_TRANSFERS))
    1540     {
    1541         LogRel2(("Shared Clipboard: File transfers not supported by installed Guest Addtions, skipping reporting those to the guest\n"));
    1542         fSkipTransfers = true;
    1543     }
    1544 
    1545     if (fSkipTransfers)
    1546         fFormats &= ~VBOX_SHCL_FMT_URI_LIST;
     1534    if (fFormats & VBOX_SHCL_FMT_URI_LIST)
     1535    {
     1536        if (!(g_fTransferMode & VBOX_SHCL_TRANSFER_MODE_F_ENABLED))
     1537        {
     1538            static uint8_t s_uTransfersBitchedNotEnabled = 0;
     1539            if (s_uTransfersBitchedNotEnabled++ < 32)
     1540            {
     1541                LogRel(("Shared Clipboard: File transfers are disabled, skipping reporting those to the guest\n"));
     1542                fSkipTransfers = true;
     1543            }
     1544        }
     1545
     1546        if (!(pClient->State.fGuestFeatures0 & VBOX_SHCL_GF_0_TRANSFERS))
     1547        {
     1548            static bool s_fTransfersBitchedNotSupported = false;
     1549            if (!s_fTransfersBitchedNotSupported)
     1550            {
     1551                LogRel(("Shared Clipboard: File transfers not supported by installed Guest Addtions, skipping reporting those to the guest\n"));
     1552                s_fTransfersBitchedNotSupported = true;
     1553            }
     1554            fSkipTransfers = true;
     1555        }
     1556
     1557        if (fSkipTransfers)
     1558            fFormats &= ~VBOX_SHCL_FMT_URI_LIST;
     1559    }
    15471560#endif
    15481561
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