VirtualBox

Changeset 70940 in vbox


Ignore:
Timestamp:
Feb 9, 2018 7:40:22 PM (7 years ago)
Author:
vboxsync
Message:

IPRT/RTPathQueryInfo-nt.cpp: Adjustments for statting \Device\xxx files in the NT namespace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/nt/RTPathQueryInfo-nt.cpp

    r70420 r70940  
    511511
    512512            if (RT_FAILURE(rc))
    513                 rc = VERR_TRY_AGAIN;
     513                rc = VINF_TRY_AGAIN;
    514514        }
    515515        else if (   rcNt == STATUS_OBJECT_TYPE_MISMATCH
     
    611611            NtClose(hFile);
    612612        }
     613        /*
     614         * Quite possibly a object directory.
     615         */
     616        else if (   rcNt == STATUS_OBJECT_NAME_INVALID  /* with trailing slash */
     617                 || rcNt == STATUS_OBJECT_TYPE_MISMATCH /* without trailing slash */ )
     618        {
     619            InitializeObjectAttributes(&ObjAttr, pNtName, OBJ_CASE_INSENSITIVE, hRootDir, NULL);
     620            rc = rtPathNtQueryInfoInDirectoryObject(&ObjAttr, pObjInfo, enmAddAttr, fFlags, &uBuf, sizeof(uBuf));
     621            if (RT_FAILURE(rc))
     622                rc = RTErrConvertFromNtStatus(rcNt);
     623        }
    613624        else
    614625            rc = RTErrConvertFromNtStatus(rcNt);
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