VirtualBox

Changeset 92739 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 3, 2021 4:16:14 PM (3 years ago)
Author:
vboxsync
Message:

Shared Clipboard/Transfers: Resolved @todos: Revamped event [source] interface to now use the event objects directly instead of the event ID [build fix]. bugref:9437

File:
1 edited

Legend:

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

    r92735 r92739  
    194194    }
    195195
    196     SHCLEVENTID idEvent = 0;
    197     int rc = ShClSvcGuestDataRequest(pCtx->pClient, fFormat, &idEvent);
     196    PSHCLEVENT pEvent;
     197    int rc = ShClSvcGuestDataRequest(pCtx->pClient, fFormat, &pEvent);
    198198    if (RT_SUCCESS(rc))
    199199    {
    200200        PSHCLEVENTPAYLOAD pPayload;
    201         rc = ShClEventWait(&pCtx->pClient->EventSrc, idEvent, 30 * 1000, &pPayload);
     201        rc = ShClEventWait(pEvent, 30 * 1000, &pPayload);
    202202        if (RT_SUCCESS(rc))
    203203        {
     
    206206        }
    207207
    208         ShClEventRelease(&pCtx->pClient->EventSrc, idEvent);
     208        ShClEventRelease(pEvent);
    209209    }
    210210
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