Changeset 81172 in vbox for trunk/src/VBox/GuestHost/SharedClipboard/ClipboardDataObjectImpl-win.cpp
- Timestamp:
- Oct 9, 2019 8:56:50 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/ClipboardDataObjectImpl-win.cpp
r81025 r81172 40 40 /** @todo Also handle Unicode entries. 41 41 * !!! WARNING: Buggy, doesn't work yet (some memory corruption / garbage in the file name descriptions) !!! */ 42 //#define VBOX_CLIPBOARD_WITH_UNICODE_SUPPORT 042 //#define VBOX_CLIPBOARD_WITH_UNICODE_SUPPORT 1 43 43 44 44 SharedClipboardWinDataObject::SharedClipboardWinDataObject(PSHCLTRANSFER pTransfer, … … 50 50 , m_pStream(NULL) 51 51 , m_uObjIdx(0) 52 , m_fRunning(false) 52 53 , m_EventListComplete(NIL_RTSEMEVENT) 53 54 , m_EventTransferComplete(NIL_RTSEMEVENT) … … 132 133 SharedClipboardWinDataObject::~SharedClipboardWinDataObject(void) 133 134 { 135 LogFlowFuncEnter(); 136 134 137 RTSemEventDestroy(m_EventListComplete); 135 138 m_EventListComplete = NIL_RTSEMEVENT; … … 572 575 573 576 const uint32_t enmTransferStatus = SharedClipboardTransferGetStatus(m_pTransfer); 574 575 LogFlowFunc(("FormatIndex_FileDescriptor%s, transfer status is %s\n", 576 fUnicode ? "W" : "A", VBoxShClTransferStatusToStr(enmTransferStatus))); 577 RT_NOREF(enmTransferStatus); 578 579 LogFlowFunc(("FormatIndex_FileDescriptor%s, enmTransferStatus=%s, m_fRunning=%RTbool\n", 580 fUnicode ? "W" : "A", VBoxShClTransferStatusToStr(enmTransferStatus), m_fRunning)); 577 581 578 582 int rc; 579 583 580 584 /* The caller can call GetData() several times, so make sure we don't do the same transfer multiple times. */ 581 if ( enmTransferStatus == SHCLTRANSFERSTATUS_INITIALIZED)585 if (!m_fRunning) 582 586 { 583 587 /* Start the transfer asynchronously in a separate thread. */ … … 585 589 if (RT_SUCCESS(rc)) 586 590 { 591 m_fRunning = true; 592 587 593 /* Don't block for too long here, as this also will screw other apps running on the OS. */ 588 594 LogFunc(("Waiting for listing to arrive ...\n"));
Note:
See TracChangeset
for help on using the changeset viewer.