VirtualBox

Ignore:
Timestamp:
Nov 19, 2017 2:27:58 PM (7 years ago)
Author:
vboxsync
Message:

iprt/dir: Morphing PRTDIR into a handle named RTDIR. (Been wanting to correct this for years. Don't know why I makde it a pointer rather than an abstrct handle like everything else.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-helper-apps/VBoxExtPackHelperApp.cpp

    r69500 r69753  
    10741074     * Ok, down to business.
    10751075     */
    1076     PRTDIR pDir;
    1077     rc = RTDirOpen(&pDir, pszBaseDir);
     1076    RTDIR hDir;
     1077    rc = RTDirOpen(&hDir, pszBaseDir);
    10781078    if (RT_FAILURE(rc))
    10791079        return RTMsgErrorExit(RTEXITCODE_FAILURE, "Failed open the base directory: %Rrc ('%s')", rc, pszBaseDir);
     
    10841084    {
    10851085        RTDIRENTRYEX Entry;
    1086         rc = RTDirReadEx(pDir, &Entry, NULL /*pcbDirEntry*/, RTFSOBJATTRADD_NOTHING, RTPATH_F_ON_LINK);
     1086        rc = RTDirReadEx(hDir, &Entry, NULL /*pcbDirEntry*/, RTFSOBJATTRADD_NOTHING, RTPATH_F_ON_LINK);
    10871087        if (RT_FAILURE(rc))
    10881088        {
     
    11271127        }
    11281128    }
    1129     RTDirClose(pDir);
     1129    RTDirClose(hDir);
    11301130    if (!cCleaned)
    11311131        RTMsgInfo("Nothing to clean.");
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