Changeset 84998 in vbox for trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibDragAndDrop.cpp
- Timestamp:
- Jun 29, 2020 4:34:22 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibDragAndDrop.cpp
r84985 r84998 397 397 * Enter the main loop of retieving files + directories. 398 398 */ 399 DnDURIObject objFile (DnDURIObject::Type_File);399 DnDURIObject objFile; 400 400 401 401 char szPathName[RTPATH_MAX] = { 0 }; … … 497 497 uint32_t fCreationMode = (fMode & RTFS_UNIX_MASK) | RTFS_UNIX_IRUSR | RTFS_UNIX_IWUSR; 498 498 #endif 499 rc = objFile. OpenEx(strPathAbs, DnDURIObject::View_Target, fOpen, fCreationMode);499 rc = objFile.Init(DnDURIObject::Type_File, strPathAbs); 500 500 if (RT_SUCCESS(rc)) 501 501 { 502 rc = pDroppedFiles->AddFile(strPathAbs.c_str());502 rc = objFile.Open(fOpen, fCreationMode); 503 503 if (RT_SUCCESS(rc)) 504 504 { 505 cbFileWritten = 0; 506 objFile.SetSize(cbFileSize); 505 rc = pDroppedFiles->AddFile(strPathAbs.c_str()); 506 if (RT_SUCCESS(rc)) 507 { 508 cbFileWritten = 0; 509 objFile.SetSize(cbFileSize); 510 } 507 511 } 508 512 } … … 1534 1538 AssertReturn(pObj->GetType() == DnDURIObject::Type_Directory, VERR_INVALID_PARAMETER); 1535 1539 1536 RTCString strPath = pObj->Get DestPathAbs();1540 RTCString strPath = pObj->GetPath(); 1537 1541 LogFlowFunc(("strDir=%s (%zu), fMode=0x%x\n", 1538 1542 strPath.c_str(), strPath.length(), pObj->GetMode())); … … 1574 1578 return VERR_NO_MEMORY; 1575 1579 1576 RTCString strPath = pObj->Get DestPathAbs();1580 RTCString strPath = pObj->GetPath(); 1577 1581 1578 1582 LogFlowFunc(("strFile=%s (%zu), cbSize=%RU64, fMode=0x%x\n", strPath.c_str(), strPath.length(),
Note:
See TracChangeset
for help on using the changeset viewer.