Changeset 100412 in vbox for trunk/src/VBox/Additions/WINNT/VBoxTray
- Timestamp:
- Jul 6, 2023 2:08:30 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp
r100407 r100412 206 206 switch(ShClTransferGetDir(pCbCtx->pTransfer)) 207 207 { 208 case SHCLTRANSFERDIR_FROM_REMOTE: 209 { 210 AssertPtrBreak(pCtx->Win.pDataObjInFlight); 211 rc = pCtx->Win.pDataObjInFlight->SetTransfer(pCbCtx->pTransfer); 212 if (RT_SUCCESS(rc)) 213 rc = pCtx->Win.pDataObjInFlight->SetStatus(SharedClipboardWinDataObject::Running); 208 case SHCLTRANSFERDIR_TO_REMOTE: /* G->H */ 209 { 210 rc = SharedClipboardWinTransferGetRootsFromClipboard(&pCtx->Win, pCbCtx->pTransfer); 211 break; 212 } 213 214 case SHCLTRANSFERDIR_FROM_REMOTE: /* H->G */ 215 { 216 SharedClipboardWinDataObject *pObj = pCtx->Win.pDataObjInFlight; 217 if (pObj) 218 { 219 rc = pObj->SetTransfer(pCbCtx->pTransfer); 220 if (RT_SUCCESS(rc)) 221 rc = pObj->SetStatus(SharedClipboardWinDataObject::Running); 222 223 pCtx->Win.pDataObjInFlight = NULL; /* Hand off to Windows. */ 224 } 225 else 226 AssertMsgFailed(("No data object in flight!\n")); 227 214 228 break; 215 229 }
Note:
See TracChangeset
for help on using the changeset viewer.