VirtualBox

Changeset 103451 in vbox for trunk/src/VBox/GuestHost


Ignore:
Timestamp:
Feb 19, 2024 3:00:58 PM (12 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161782
Message:

Shared Clipboard: Condensed more code by adding a new Windows-specific function SharedClipboardWinTransferHandOffToDataObject() [build fix]. bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-win.cpp

    r103450 r103451  
    12031203int SharedClipboardWinTransferHandOffToDataObject(PSHCLWINCTX pWinCtx, PSHCLTRANSFER pTransfer)
    12041204{
    1205     int rc = RTCritSectEnter(&pCtx->Win.CritSect);
     1205    int rc = RTCritSectEnter(&pWinCtx->CritSect);
    12061206    if (RT_SUCCESS(rc))
    12071207    {
    1208         SharedClipboardWinDataObject *pObj = pCtx->Win.pDataObjInFlight;
     1208        SharedClipboardWinDataObject *pObj = pWinCtx->pDataObjInFlight;
    12091209        if (pObj)
    12101210        {
     
    12131213                rc = pObj->SetStatus(SharedClipboardWinDataObject::Running);
    12141214
    1215             pCtx->Win.pDataObjInFlight = NULL; /* Hand off to Windows. */
     1215            pWinCtx->pDataObjInFlight = NULL; /* Hand off to Windows. */
    12161216        }
    12171217        else
     
    12211221        }
    12221222
    1223         int rc2 = RTCritSectLeave(&pCtx->Win.CritSect);
     1223        int rc2 = RTCritSectLeave(&pWinCtx->CritSect);
    12241224        AssertRC(rc2);
    12251225    }
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