VirtualBox

Changeset 57919 in vbox for trunk/src/VBox/Runtime/r3/nt


Ignore:
Timestamp:
Sep 27, 2015 11:39:09 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
102891
Message:

direnum-r3-nt.cpp: Don't try FileIdBothDirectoryInformation on W2K and NT4, the cifs file system driver / server may get upset.

File:
1 edited

Legend:

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

    r57358 r57919  
    350350         * Thus the mess.
    351351         */
    352         pThis->enmInfoClass = FileIdBothDirectoryInformation;
     352        if (RT_MAKE_U64(RTNtCurrentPeb()->OSMinorVersion, RTNtCurrentPeb()->OSMajorVersion) > RT_MAKE_U64(0,5) /* > W2K */)
     353            pThis->enmInfoClass = FileIdBothDirectoryInformation; /* Introduced in XP, from I can tell. */
     354        else
     355            pThis->enmInfoClass = FileBothDirectoryInformation;
    353356        rcNt = NtQueryDirectoryFile(pThis->hDir,
    354357                                    NULL /* Event */,
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