VirtualBox

Changeset 104605 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 13, 2024 4:02:45 PM (7 months ago)
Author:
vboxsync
Message:

GuestHost/DragAndDrop: pcszBaseOld not being NULL is already checked before, act on the status code returned by dndTransferListRootEntry(), bugref:3409

Location:
trunk/src/VBox/GuestHost/DragAndDrop
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/DragAndDrop/DnDPath.cpp

    r98103 r104605  
    183183    /* Do we need to see if the given path is part of the old base? */
    184184    size_t idxBase;
    185     if (   pcszBaseOld
    186         && RTPathStartsWith(pcszPath, pcszBaseOld))
    187     {
     185    if (RTPathStartsWith(pcszPath, pcszBaseOld))
    188186        idxBase = strlen(pcszBaseOld);
    189     }
    190187    else
    191188        idxBase = 0;
  • trunk/src/VBox/GuestHost/DragAndDrop/DnDTransferList.cpp

    r98103 r104605  
    543543            {
    544544                rc = dndTransferListRootEntryAdd(pList, pszPathAbs);
     545                if (RT_FAILURE(rc))
     546                    break;
    545547            }
    546548        }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette