VirtualBox

Changeset 85462 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 27, 2020 7:18:57 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139514
Message:

DnD/DnDTransferList: Also reset the root path in DnDTransferListReset().

File:
1 edited

Legend:

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

    r85435 r85462  
    122122
    123123/**
    124  * Resets a transfer list.
    125  *
    126  * Note: Does *not* clear the root path!
    127  *
    128  * @param   pList               Transfer list to clear.
     124 * Resets a transfer list to its initial state.
     125 *
     126 * @param   pList               Transfer list to reset.
    129127 */
    130128void DnDTransferListReset(PDNDTRANSFERLIST pList)
    131129{
    132130    AssertPtrReturnVoid(pList);
    133 
    134     /* Note: This does not clear the root path! */
    135131
    136132    if (!pList->pszPathRootAbs)
    137133        return;
     134
     135    RTStrFree(pList->pszPathRootAbs);
     136    pList->pszPathRootAbs = NULL;
    138137
    139138    PDNDTRANSFERLISTROOT pRootCur, pRootNext;
Note: See TracChangeset for help on using the changeset viewer.

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