VirtualBox

Changeset 33797 in vbox


Ignore:
Timestamp:
Nov 5, 2010 4:04:08 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67442
Message:

Main: use RTPathJoin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/VFSExplorerImpl.cpp

    r33794 r33797  
    376376             ++it, ++i)
    377377        {
    378             memcpy(szPath, m->strPath.c_str(), strlen(m->strPath.c_str()) + 1);
    379             RTPathAppend(szPath, sizeof(szPath), (*it).c_str());
    380             int vrc = RTFileDelete(szPath);
     378            int vrc = RTPathJoin(szPath, sizeof(szPath), m->strPath.c_str(), (*it).c_str());
    381379            if (RT_FAILURE(vrc))
    382                 throw setError(VBOX_E_FILE_ERROR, tr ("Can't delete file '%s' (%Rrc)"), szPath, vrc);
     380                throw setError(E_FAIL, tr("Internal Error (%Rrc)"), vrc);
     381            vrc = RTFileDelete(szPath);
     382            if (RT_FAILURE(vrc))
     383                throw setError(VBOX_E_FILE_ERROR, tr("Can't delete file '%s' (%Rrc)"), szPath, vrc);
    383384            if (aTask->progress)
    384385                aTask->progress->SetCurrentOperationProgress((ULONG)(fPercentStep * i));
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