Changeset 79276 in vbox for trunk/src/VBox
- Timestamp:
- Jun 21, 2019 1:10:30 PM (6 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/ClipboardURIList.cpp
r79267 r79276 114 114 AssertPtrReturn(pcszDstBase, VERR_INVALID_POINTER); 115 115 AssertPtrReturn(pcszDstPath, VERR_INVALID_POINTER); 116 AssertReturn(!(fFlags & ~SHAREDCLIPBOARDURILIST_FLAGS_VALID_MASK), VERR_INVALID_FLAGS); 116 117 117 118 LogFlowFunc(("pcszSrcPath=%s, pcszDstPath=%s, pcszDstBase=%s, cchDstBase=%zu, fFlags=0x%x\n", … … 280 281 281 282 m_lstTree.append(pObject); 282 m_lstRoot.append(pObject->GetSourcePathAbs()); ;283 m_lstRoot.append(pObject->GetSourcePathAbs()); 283 284 284 285 m_cTotal++; -
trunk/src/VBox/GuestHost/SharedClipboard/ClipboardURIObject.cpp
r78942 r79276 121 121 void SharedClipboardURIObject::Close(void) 122 122 { 123 LogFlowFuncEnter(); 124 123 125 closeInternal(); 124 126 } … … 337 339 u.File.cbToProcess = u.File.objInfo.cbObject; 338 340 u.File.cbProcessed = 0; 341 342 m_enmView = enmView; 339 343 } 340 344 } … … 467 471 /* pcbRead is optional. */ 468 472 469 AssertMsgReturn(m_enmView == View_Source, ("Cannot read from an object which is not in source view \n"),473 AssertMsgReturn(m_enmView == View_Source, ("Cannot read from an object which is not in source view (is 0x%x)\n", m_enmView), 470 474 VERR_INVALID_STATE); 471 475 -
trunk/src/VBox/GuestHost/SharedClipboard/clipboard-uri.cpp
r79270 r79276 1370 1370 1371 1371 dirData.pszPath = RTStrDup(strPath.c_str()); 1372 dirData.cbPath = (uint32_t)strlen(dirData.pszPath) + 1 /* Include termination */;1372 dirData.cbPath = (uint32_t)strlen(dirData.pszPath); 1373 1373 1374 1374 rc = pTransfer->pProvider->WriteDirectory(&dirData); … … 1391 1391 1392 1392 fileHdr.pszFilePath = RTStrDup(strPath.c_str()); 1393 fileHdr.cbFilePath = (uint32_t)strlen(fileHdr.pszFilePath) + 1 /* Include termination */;1393 fileHdr.cbFilePath = (uint32_t)strlen(fileHdr.pszFilePath); 1394 1394 fileHdr.cbSize = pObj->GetSize(); 1395 1395 fileHdr.fFlags = 0; … … 1413 1413 if (RT_SUCCESS(rc)) 1414 1414 { 1415 rc = pTransfer->pProvider->WriteFileData(pvData, cbRead); 1415 uint32_t cbToRead = cbRead; 1416 rc = pTransfer->pProvider->WriteFileData(pvData, cbToRead, 0 /* fFlags */, &cbRead); 1416 1417 } 1417 1418 -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-uri.cpp
r79267 r79276 293 293 } 294 294 295 bool fDispatchToProvider = false; /* Whether to (also) dispatch the H CGCM data to the transfer provider. */295 bool fDispatchToProvider = false; /* Whether to (also) dispatch the HGCM data to the transfer provider. */ 296 296 297 297 int rc = VERR_INVALID_PARAMETER; /* Play safe. */ … … 466 466 const char *pszCacheDir = pArea->GetDirAbs(); 467 467 468 RT_BREAKPOINT();469 470 468 char pszPathAbs[RTPATH_MAX]; 471 469 rc = RTPathJoin(pszPathAbs, sizeof(pszPathAbs), pszCacheDir, fileHdr.pszFilePath);
Note:
See TracChangeset
for help on using the changeset viewer.