Changeset 57654 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Sep 8, 2015 1:16:17 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibDragAndDrop.cpp
r57500 r57654 373 373 * Create and query the (unique) drop target directory in the user's temporary directory. 374 374 */ 375 DNDDIRDROPPEDFILES dirDroppedFiles;375 PDNDDIRDROPPEDFILES pDroppedFiles; 376 376 const char *pszDropDir = NULL; 377 int rc = DnDDirDroppedFilesCreateAndOpenTemp( &dirDroppedFiles);378 if (RT_SUCCESS(rc)) 379 pszDropDir = DnDDirDroppedFilesGetDirAbs( &dirDroppedFiles);377 int rc = DnDDirDroppedFilesCreateAndOpenTemp(0 /* fFlags */, &pDroppedFiles); 378 if (RT_SUCCESS(rc)) 379 pszDropDir = DnDDirDroppedFilesGetDirAbs(pDroppedFiles); 380 380 381 381 /* … … 421 421 rc = RTDirCreate(pszPathAbs, fCreationMode, 0); 422 422 if (RT_SUCCESS(rc)) 423 rc = DnDDirDroppedAddDir( &dirDroppedFiles, pszPathAbs);423 rc = DnDDirDroppedAddDir(pDroppedFiles, pszPathAbs); 424 424 425 425 RTStrFree(pszPathAbs); … … 488 488 if (RT_SUCCESS(rc)) 489 489 { 490 rc = DnDDirDroppedAddFile( &dirDroppedFiles, strPathAbs.c_str());490 rc = DnDDirDroppedAddFile(pDroppedFiles, strPathAbs.c_str()); 491 491 if (RT_SUCCESS(rc)) 492 492 { … … 571 571 if (RT_FAILURE(rc)) 572 572 { 573 int rc2 = DnDDirDroppedFilesRollback( &dirDroppedFiles);573 int rc2 = DnDDirDroppedFilesRollback(pDroppedFiles); 574 574 AssertRC(rc2); /* Not fatal, don't report back to host. */ 575 575 } … … 620 620 * by the client's drag'n drop operation lateron. 621 621 */ 622 int rc2 = DnDDirDroppedFilesClose( &dirDroppedFiles, false);622 int rc2 = DnDDirDroppedFilesClose(pDroppedFiles, false); 623 623 if (RT_FAILURE(rc2)) /* Not fatal, don't report back to host. */ 624 624 LogFlowFunc(("Closing dropped files directory failed with %Rrc\n", rc2)); 625 626 DnDDirDroppedFilesDestroy(pDroppedFiles); 625 627 626 628 LogFlowFuncLeaveRC(rc);
Note:
See TracChangeset
for help on using the changeset viewer.