Changeset 74574 in vbox for trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp
- Timestamp:
- Oct 2, 2018 9:38:42 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp
r74526 r74574 904 904 AssertPtr(pObj); 905 905 906 RTCString strPath = pObj->GetDestPath ();906 RTCString strPath = pObj->GetDestPathAbs(); 907 907 if (strPath.isEmpty()) 908 908 return VERR_INVALID_PARAMETER; … … 931 931 AssertPtr(pObj); 932 932 933 RTCString strPathSrc = pObj->GetSourcePath ();933 RTCString strPathSrc = pObj->GetSourcePathAbs(); 934 934 if (strPathSrc.isEmpty()) 935 935 return VERR_INVALID_PARAMETER; … … 965 965 pMsg->setType(HOST_DND_HG_SND_FILE_HDR); 966 966 pMsg->setNextUInt32(0); /** @todo ContextID not used yet. */ 967 pMsg->setNextString(pObj->GetDestPath ().c_str()); /* pvName */968 pMsg->setNextUInt32((uint32_t)(pObj->GetDestPath ().length() + 1)); /* cbName */967 pMsg->setNextString(pObj->GetDestPathAbs().c_str()); /* pvName */ 968 pMsg->setNextUInt32((uint32_t)(pObj->GetDestPathAbs().length() + 1)); /* cbName */ 969 969 pMsg->setNextUInt32(0); /* uFlags */ 970 970 pMsg->setNextUInt32(pObj->GetMode()); /* fMode */ … … 1026 1026 if (mDataBase.m_uProtocolVersion <= 1) 1027 1027 { 1028 pMsg->setNextString(pObj->GetDestPath ().c_str()); /* pvName */1029 pMsg->setNextUInt32((uint32_t)(pObj->GetDestPath ().length() + 1)); /* cbName */1028 pMsg->setNextString(pObj->GetDestPathAbs().c_str()); /* pvName */ 1029 pMsg->setNextUInt32((uint32_t)(pObj->GetDestPathAbs().length() + 1)); /* cbName */ 1030 1030 } 1031 1031 else if (mDataBase.m_uProtocolVersion >= 2) … … 1063 1063 if (pObj->IsComplete()) /* Done reading? */ 1064 1064 { 1065 LogRel2(("DnD: File transfer to guest complete: %s\n", pObj->GetSourcePath ().c_str()));1066 LogFlowFunc(("File '%s' complete\n", pObj->GetSourcePath ().c_str()));1065 LogRel2(("DnD: File transfer to guest complete: %s\n", pObj->GetSourcePathAbs().c_str())); 1066 LogFlowFunc(("File '%s' complete\n", pObj->GetSourcePathAbs().c_str())); 1067 1067 1068 1068 /* DnDURIObject::Read() returns VINF_EOF when finished reading the entire fire, … … 1467 1467 uint32_t fMode = pCurObj->GetMode(); 1468 1468 LogRel3(("DnD: Processing: srcPath=%s, dstPath=%s, fMode=0x%x, cbSize=%RU32, fIsDir=%RTbool, fIsFile=%RTbool\n", 1469 pCurObj->GetSourcePath ().c_str(), pCurObj->GetDestPath().c_str(),1469 pCurObj->GetSourcePathAbs().c_str(), pCurObj->GetDestPathAbs().c_str(), 1470 1470 fMode, pCurObj->GetSize(), 1471 1471 RTFS_IS_DIRECTORY(fMode), RTFS_IS_FILE(fMode))); … … 1482 1482 { 1483 1483 AssertMsgFailed(("fMode=0x%x is not supported for srcPath=%s, dstPath=%s\n", 1484 fMode, pCurObj->GetSourcePath ().c_str(), pCurObj->GetDestPath().c_str()));1484 fMode, pCurObj->GetSourcePathAbs().c_str(), pCurObj->GetDestPathAbs().c_str())); 1485 1485 rc = VERR_NOT_SUPPORTED; 1486 1486 } … … 1495 1495 if (fRemove) 1496 1496 { 1497 LogFlowFunc(("Removing \"%s\" from list, rc=%Rrc\n", pCurObj->GetSourcePath ().c_str(), rc));1497 LogFlowFunc(("Removing \"%s\" from list, rc=%Rrc\n", pCurObj->GetSourcePathAbs().c_str(), rc)); 1498 1498 pCtx->mURI.removeObjCurrent(); 1499 1499 }
Note:
See TracChangeset
for help on using the changeset viewer.