VirtualBox

Ignore:
Timestamp:
Nov 20, 2020 6:35:24 PM (4 years ago)
Author:
vboxsync
Message:

Shared Clipboard/Transfers: Resurrected Windows code. bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp

    r85121 r86948  
    161161        /* The IDataObject *must* be created on the same thread as our (proxy) window, so post a message to it
    162162         * to do the stuff for us. */
    163         const SHCLEVENTID idEvent = ShClEventIDGenerate(&pTransfer->Events);
    164 
    165         rc = ShClEventRegister(&pTransfer->Events, idEvent);
    166         if (RT_SUCCESS(rc))
     163        const SHCLEVENTID idEvent = ShClEventIdGenerateAndRegister(&pTransfer->Events);
     164        if (idEvent != NIL_SHCLEVENTID)
    167165        {
    168166            /* Don't want to rely on SendMessage (synchronous) here, so just post and wait the event getting signalled. */
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