Changeset 81223 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Oct 11, 2019 12:06:49 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp
r81213 r81223 115 115 } 116 116 117 int rc2 = Sh aredClipboardTransferCtxTransferUnregister(pCtx, pTransfer->State.uID);117 int rc2 = ShClTransferCtxTransferUnregister(pCtx, pTransfer->State.uID); 118 118 AssertRC(rc2); 119 119 120 Sh aredClipboardTransferDestroy(pTransfer);120 ShClTransferDestroy(pTransfer); 121 121 122 122 RTMemFree(pTransfer); … … 145 145 AssertPtr(pTransfer); 146 146 147 const SHCLTRANSFERDIR enmDir = Sh aredClipboardTransferGetDir(pTransfer);148 149 LogFlowFunc(("pCtx=%p, idTransfer=%RU16, enmDir=%RU32\n", pCtx, Sh aredClipboardTransferGetID(pTransfer), enmDir));147 const SHCLTRANSFERDIR enmDir = ShClTransferGetDir(pTransfer); 148 149 LogFlowFunc(("pCtx=%p, idTransfer=%RU16, enmDir=%RU32\n", pCtx, ShClTransferGetID(pTransfer), enmDir)); 150 150 151 151 int rc; … … 161 161 /* The IDataObject *must* be created on the same thread as our (proxy) window, so post a message to it 162 162 * to do the stuff for us. */ 163 const SHCLEVENTID uEvent = Sh aredClipboardEventIDGenerate(&pTransfer->Events);164 165 rc = Sh aredClipboardEventRegister(&pTransfer->Events, uEvent);163 const SHCLEVENTID uEvent = ShClEventIDGenerate(&pTransfer->Events); 164 165 rc = ShClEventRegister(&pTransfer->Events, uEvent); 166 166 if (RT_SUCCESS(rc)) 167 167 { … … 170 170 171 171 PSHCLEVENTPAYLOAD pPayload; 172 rc = Sh aredClipboardEventWait(&pTransfer->Events, uEvent, 30 * 1000 /* Timeout in ms */, &pPayload);172 rc = ShClEventWait(&pTransfer->Events, uEvent, 30 * 1000 /* Timeout in ms */, &pPayload); 173 173 if (RT_SUCCESS(rc)) 174 174 { … … 176 176 rc = *(int *)pPayload->pvData; 177 177 178 Sh aredClipboardPayloadFree(pPayload);179 } 180 181 Sh aredClipboardEventUnregister(&pTransfer->Events, uEvent);178 ShClPayloadFree(pPayload); 179 } 180 181 ShClEventUnregister(&pTransfer->Events, uEvent); 182 182 } 183 183 } … … 188 188 LogRel(("Shared Clipboard: Starting transfer failed, rc=%Rrc\n", rc)); 189 189 190 LogFlowFunc(("LEAVE: idTransfer=%RU16, rc=%Rrc\n", Sh aredClipboardTransferGetID(pTransfer), rc));190 LogFlowFunc(("LEAVE: idTransfer=%RU16, rc=%Rrc\n", ShClTransferGetID(pTransfer), rc)); 191 191 return rc; 192 192 } … … 649 649 const SHCLEVENTID uEvent = (SHCLEVENTID)lParam; 650 650 651 Assert(Sh aredClipboardTransferGetSource(pTransfer) == SHCLSOURCE_REMOTE); /* Sanity. */651 Assert(ShClTransferGetSource(pTransfer) == SHCLSOURCE_REMOTE); /* Sanity. */ 652 652 653 653 int rcTransfer = SharedClipboardWinTransferCreate(pWinCtx, pTransfer); 654 654 655 655 PSHCLEVENTPAYLOAD pPayload = NULL; 656 int rc = Sh aredClipboardPayloadAlloc(uEvent, &rcTransfer, sizeof(rcTransfer), &pPayload);656 int rc = ShClPayloadAlloc(uEvent, &rcTransfer, sizeof(rcTransfer), &pPayload); 657 657 if (RT_SUCCESS(rc)) 658 658 { 659 rc = Sh aredClipboardEventSignal(&pTransfer->Events, uEvent, pPayload);659 rc = ShClEventSignal(&pTransfer->Events, uEvent, pPayload); 660 660 if (RT_FAILURE(rc)) 661 Sh aredClipboardPayloadFree(pPayload);661 ShClPayloadFree(pPayload); 662 662 } 663 663 … … 910 910 { 911 911 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 912 rc = Sh aredClipboardTransferCtxInit(&pCtx->TransferCtx);912 rc = ShClTransferCtxInit(&pCtx->TransferCtx); 913 913 #endif 914 914 if (RT_SUCCESS(rc)) … … 1178 1178 1179 1179 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 1180 Sh aredClipboardTransferCtxDestroy(&pCtx->TransferCtx);1180 ShClTransferCtxDestroy(&pCtx->TransferCtx); 1181 1181 #endif 1182 1182
Note:
See TracChangeset
for help on using the changeset viewer.