VirtualBox

Changeset 50561 in vbox for trunk/src/VBox/GuestHost


Ignore:
Timestamp:
Feb 24, 2014 9:07:22 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92425
Message:

DnD: Update, bugfixes.

File:
1 edited

Legend:

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

    r50508 r50561  
    183183
    184184                    /* End of file reached or error occurred? */
    185                     if (   cbRead < cbToRead
     185                    if (   m_cbProcessed == m_cbSize
    186186                        || RT_FAILURE(rc))
     187                    {
    187188                        closeInternal();
     189                    }
    188190                }
    189191            }
     
    572574}
    573575
    574 RTCString DnDURIList::RootToString(const RTCString &strBasePath /* = "" */)
     576RTCString DnDURIList::RootToString(const RTCString &strBasePath /* = "" */,
     577                                   const RTCString &strSeparator /* = "\r\n" */)
    575578{
    576579    RTCString strRet;
     
    586589                if (pszPathURI)
    587590                {
    588                     strRet += RTCString(pszPathURI) + "\r\n";
     591                    strRet += RTCString(pszPathURI) + strSeparator;
    589592                    RTStrFree(pszPathURI);
    590593                }
     594                else
     595                    break;
    591596                RTStrFree(pszPath);
    592597            }
     
    599604            if (pszPathURI)
    600605            {
    601                 strRet += RTCString(pszPathURI) + "\r\n";
     606                strRet += RTCString(pszPathURI) + strSeparator;
    602607                RTStrFree(pszPathURI);
    603608            }
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