Changeset 74526 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Sep 28, 2018 3:08:24 PM (6 years ago)
- Location:
- trunk/src/VBox/Additions
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnDDropTarget.cpp
r74478 r74526 485 485 if (RT_SUCCESS(rc)) 486 486 { 487 RTCString strRoot = lstURI. RootToString();487 RTCString strRoot = lstURI.GetRootEntries(); 488 488 size_t cbRoot = strRoot.length() + 1; /* Include termination */ 489 489 -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp
r69749 r74526 562 562 int rc = RTLogCreateEx(&g_pLoggerRelease, fFlags, 563 563 #ifdef DEBUG 564 "all.e.l. f",564 "all.e.l.l2.l3.f", 565 565 "VBOXTRAY_LOG", 566 566 #else … … 568 568 "VBOXTRAY_RELEASE_LOG", 569 569 #endif 570 RT_ELEMENTS(s_apszGroups), s_apszGroups, RTLOGDEST_STDOUT ,570 RT_ELEMENTS(s_apszGroups), s_apszGroups, RTLOGDEST_STDOUT | RTLOGDEST_USER, 571 571 vboxTrayLogHeaderFooter, g_cHistory, g_uHistoryFileSize, g_uHistoryFileTime, 572 572 RTErrInfoInitStatic(&ErrInfo), pszLogFile); -
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibDragAndDrop.cpp
r74472 r74526 410 410 * Enter the main loop of retieving files + directories. 411 411 */ 412 DnDURIObject objFile(DnDURIObject:: File);412 DnDURIObject objFile(DnDURIObject::Type_File); 413 413 414 414 char szPathName[RTPATH_MAX] = { 0 }; … … 510 510 uint32_t fCreationMode = (fMode & RTFS_UNIX_MASK) | RTFS_UNIX_IRUSR | RTFS_UNIX_IWUSR; 511 511 #endif 512 rc = objFile.OpenEx(strPathAbs, DnDURIObject:: File, DnDURIObject::Target, fOpen, fCreationMode);512 rc = objFile.OpenEx(strPathAbs, DnDURIObject::Type_File, DnDURIObject::View_Target, fOpen, fCreationMode); 513 513 if (RT_SUCCESS(rc)) 514 514 { … … 866 866 Assert(cbData); 867 867 868 rc = lstURI. RootFromURIData(pvData, cbData, 0 /* fFlags */);868 rc = lstURI.SetFromURIData(pvData, cbData, 0 /* fFlags */); 869 869 if (RT_SUCCESS(rc)) 870 870 rc = vbglR3DnDHGRecvURIData(pCtx, &dataHdr, &droppedFiles); … … 879 879 } 880 880 881 RTCString strData = lstURI. RootToString(droppedFiles.GetDirAbs());881 RTCString strData = lstURI.GetRootEntries(droppedFiles.GetDirAbs()); 882 882 Assert(!strData.isEmpty()); 883 883 … … 1562 1562 static int vbglR3DnDGHSendDir(PVBGLR3GUESTDNDCMDCTX pCtx, DnDURIObject *pObj) 1563 1563 { 1564 AssertPtrReturn(pObj, VERR_INVALID_POINTER);1565 AssertPtrReturn(pCtx, VERR_INVALID_POINTER);1566 AssertReturn(pObj->GetType() == DnDURIObject:: Directory, VERR_INVALID_PARAMETER);1564 AssertPtrReturn(pObj, VERR_INVALID_POINTER); 1565 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); 1566 AssertReturn(pObj->GetType() == DnDURIObject::Type_Directory, VERR_INVALID_PARAMETER); 1567 1567 1568 1568 RTCString strPath = pObj->GetDestPath(); … … 1598 1598 static int vbglR3DnDGHSendFile(PVBGLR3GUESTDNDCMDCTX pCtx, DnDURIObject *pObj) 1599 1599 { 1600 AssertPtrReturn(pCtx, VERR_INVALID_POINTER);1601 AssertPtrReturn(pObj, VERR_INVALID_POINTER);1602 AssertReturn(pObj->GetType() == DnDURIObject:: File, VERR_INVALID_PARAMETER);1603 AssertReturn(pObj->IsOpen(), VERR_INVALID_STATE);1600 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); 1601 AssertPtrReturn(pObj, VERR_INVALID_POINTER); 1602 AssertReturn(pObj->GetType() == DnDURIObject::Type_File, VERR_INVALID_PARAMETER); 1603 AssertReturn(pObj->IsOpen(), VERR_INVALID_STATE); 1604 1604 1605 1605 uint32_t cbBuf = _64K; /** @todo Make this configurable? */ … … 1700 1700 switch (pObj->GetType()) 1701 1701 { 1702 case DnDURIObject:: Directory:1702 case DnDURIObject::Type_Directory: 1703 1703 rc = vbglR3DnDGHSendDir(pCtx, pObj); 1704 1704 break; 1705 1705 1706 case DnDURIObject:: File:1706 case DnDURIObject::Type_File: 1707 1707 rc = vbglR3DnDGHSendFile(pCtx, pObj); 1708 1708 break; … … 1771 1771 * URI list the host needs to know upfront to set up the drag'n drop operation. 1772 1772 */ 1773 RTCString strRootDest = lstURI. RootToString();1773 RTCString strRootDest = lstURI.GetRootEntries(); 1774 1774 if (strRootDest.isNotEmpty()) 1775 1775 { … … 1779 1779 /* The total size also contains the size of the meta data. */ 1780 1780 uint64_t cbTotal = cbURLIist; 1781 cbTotal += lstURI. TotalBytes();1781 cbTotal += lstURI.GetTotalBytes(); 1782 1782 1783 1783 /* We're going to send an URI list in text format. */ … … 1791 1791 dataHdr.pvMetaFmt = (void *)szMetaFmt; 1792 1792 dataHdr.cbMetaFmt = cbMetaFmt; 1793 dataHdr.cObjects = lstURI. TotalCount();1793 dataHdr.cObjects = lstURI.GetTotalCount(); 1794 1794 1795 1795 rc = vbglR3DnDGHSendDataInternal(pCtx,
Note:
See TracChangeset
for help on using the changeset viewer.