VirtualBox

Changeset 69753 in vbox for trunk/src/VBox/Runtime/r0drv


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/Runtime/r0drv/nt/ntBldSymDb.cpp

    r69111 r69753  
    10031003
    10041004    /* Open directory. */
    1005     PRTDIR pDir;
    1006     int rc = RTDirOpen(&pDir, pszDir);
     1005    RTDIR hDir;
     1006    int rc = RTDirOpen(&hDir, pszDir);
    10071007    if (RT_FAILURE(rc))
    10081008        return RTMsgErrorExit(RTEXITCODE_FAILURE, "RTDirOpen failed on '%s': %Rrc\n", pszDir, rc);
     
    10231023        /* Get the next directory. */
    10241024        size_t cbDirEntry = MY_DIRENTRY_BUF_SIZE;
    1025         rc = RTDirReadEx(pDir, pDirEntry, &cbDirEntry, RTFSOBJATTRADD_UNIX, RTPATH_F_ON_LINK);
     1025        rc = RTDirReadEx(hDir, pDirEntry, &cbDirEntry, RTFSOBJATTRADD_UNIX, RTPATH_F_ON_LINK);
    10261026        if (RT_FAILURE(rc))
    10271027            break;
    10281028
    10291029        /* Skip the dot and dot-dot links. */
    1030         if (   (pDirEntry->cbName == 1 && pDirEntry->szName[0] == '.')
    1031             || (pDirEntry->cbName == 2 && pDirEntry->szName[0] == '.' && pDirEntry->szName[1] == '.'))
     1030        if (RTDirEntryExIsStdDotLink(pDirEntry))
    10321031            continue;
    10331032
     
    10771076        rcExit = RTMsgErrorExit(RTEXITCODE_FAILURE, "RTDirReadEx failed: %Rrc\npszDir=%.*s", rc, cchDir, pszDir);
    10781077
    1079     rc = RTDirClose(pDir);
     1078    rc = RTDirClose(hDir);
    10801079    if (RT_FAILURE(rc))
    10811080        rcExit = RTMsgErrorExit(RTEXITCODE_FAILURE, "RTDirClose failed: %Rrc\npszDir=%.*s", rc, cchDir, pszDir);
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