VirtualBox

Ignore:
Timestamp:
Sep 2, 2020 5:49:55 PM (4 years ago)
Author:
vboxsync
Message:

Shared Clipboard/Host Service: The legacy Guest Additions context ID handling was missing the requested format. bugref:9437

File:
1 edited

Legend:

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

    r86007 r86008  
    12711271                        if (pCID)
    12721272                        {
    1273                             pCID->uCID = uCID;
     1273                            pCID->uCID    = uCID;
     1274                            pCID->enmType = 0; /* Not used yet. */
     1275                            pCID->uFormat = fFormat;
    12741276                            RTListAppend(&pClient->Legacy.lstCID, &pCID->Node);
    12751277                            pClient->Legacy.cCID++;
     
    17471749    {
    17481750        PSHCLCLIENTLEGACYCID pCID = NULL;
    1749         RTListForEach(&pClient->Legacy.lstCID, pCID, SHCLCLIENTLEGACYCID, Node) /* Slow, but does the job for now. */
    1750         {
    1751             if (pCID->uFormat == uFormat)
     1751        PSHCLCLIENTLEGACYCID pCIDIter;
     1752        RTListForEach(&pClient->Legacy.lstCID, pCIDIter, SHCLCLIENTLEGACYCID, Node) /* Slow, but does the job for now. */
     1753        {
     1754            if (pCIDIter->uFormat == uFormat)
     1755            {
     1756                pCID = pCIDIter;
    17521757                break;
     1758            }
    17531759        }
    17541760
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