VirtualBox

Ignore:
Timestamp:
Nov 19, 2017 2:27:58 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
119153
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/ValidationKit/utils/usb/UsbTestServicePlatform-linux.cpp

    r69674 r69753  
    125125        return VERR_BUFFER_OVERFLOW;
    126126
    127     PRTDIR pDir = NULL;
    128     rc = RTDirOpenFiltered(&pDir, aszPath, RTDIRFILTER_WINNT, 0 /*fFlags*/);
     127    RTDIR hDir = NULL;
     128    rc = RTDirOpenFiltered(&hDir, aszPath, RTDIRFILTER_WINNT, 0 /*fFlags*/);
    129129    if (RT_SUCCESS(rc))
    130130    {
     
    132132        {
    133133            RTDIRENTRY DirFolderContent;
    134             rc = RTDirRead(pDir, &DirFolderContent, NULL);
     134            rc = RTDirRead(hDir, &DirFolderContent, NULL);
    135135            if (RT_SUCCESS(rc))
    136136            {
     
    182182            rc = VINF_SUCCESS;
    183183
    184         RTDirClose(pDir);
     184        RTDirClose(hDir);
    185185    }
    186186
     
    205205
    206206    /* Enumerate the available HCD and their bus numbers. */
    207     PRTDIR pDir = NULL;
    208     int rc = RTDirOpenFiltered(&pDir, aszPath, RTDIRFILTER_WINNT, 0 /*fFlags*/);
     207    RTDIR hDir = NULL;
     208    int rc = RTDirOpenFiltered(&hDir, aszPath, RTDIRFILTER_WINNT, 0 /*fFlags*/);
    209209    if (RT_SUCCESS(rc))
    210210    {
     
    215215        {
    216216            RTDIRENTRY DirFolderContent;
    217             rc = RTDirRead(pDir, &DirFolderContent, NULL);
     217            rc = RTDirRead(hDir, &DirFolderContent, NULL);
    218218            if (RT_SUCCESS(rc))
    219219            {
     
    270270            rc = VINF_SUCCESS;
    271271
    272         RTDirClose(pDir);
     272        RTDirClose(hDir);
    273273    }
    274274
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