VirtualBox

Ignore:
Timestamp:
Aug 21, 2019 8:37:54 AM (5 years ago)
Author:
vboxsync
Message:

Shared Clipboard/URI: Update.

File:
1 edited

Legend:

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

    r80318 r80359  
    2424#include <VBox/GuestHost/SharedClipboard-uri.h>
    2525
    26 /** !!! HACK ALERT !!! Dynamically resolve functions! */
    27 #ifdef _WIN32_IE
    28 #undef _WIN32_IE
    29 #define _WIN32_IE 0x0501
    30 #endif
    31 
    3226#include <iprt/win/windows.h>
    3327#include <iprt/win/shlobj.h>
     
    5549    , m_pStream(NULL)
    5650    , m_uObjIdx(0)
     51    , m_EventListComplete(NIL_RTSEMEVENT)
     52    , m_EventTransferComplete(NIL_RTSEMEVENT)
    5753{
    5854    AssertPtr(m_pTransfer);
     
    136132{
    137133    RTSemEventDestroy(m_EventListComplete);
     134    m_EventListComplete = NIL_RTSEMEVENT;
     135
    138136    RTSemEventDestroy(m_EventTransferComplete);
     137    m_EventTransferComplete = NIL_RTSEMEVENT;
    139138
    140139    if (m_pStream)
     
    776775    if (fComplete)
    777776    {
     777        if (m_EventTransferComplete != NIL_RTSEMEVENT)
     778        {
     779            int rc2 = RTSemEventSignal(m_EventTransferComplete);
     780            AssertRC(rc2);
     781        }
     782    }
     783
     784    LogFlowFuncLeaveRC(rc);
     785}
     786
     787void VBoxClipboardWinDataObject::OnTransferCanceled(void)
     788{
     789    LogFlowFuncEnter();
     790
     791    if (m_EventTransferComplete != NIL_RTSEMEVENT)
     792    {
    778793        int rc2 = RTSemEventSignal(m_EventTransferComplete);
    779794        AssertRC(rc2);
    780795    }
    781 
    782     LogFlowFuncLeaveRC(rc);
    783 }
    784 
    785 void VBoxClipboardWinDataObject::OnTransferCanceled(void)
    786 {
    787     LogFlowFuncEnter();
    788 
    789     int rc2 = RTSemEventSignal(m_EventTransferComplete);
    790     AssertRC(rc2);
    791796
    792797    LogFlowFuncLeave();
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