VirtualBox

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


Ignore:
Timestamp:
Sep 27, 2015 11:39:09 PM (9 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.

Location:
trunk/src/VBox/Runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/nt/RTErrConvertFromNtStatus.cpp

    r57358 r57919  
    6565        case STATUS_BAD_NETWORK_PATH:       return VERR_NET_PATH_NOT_FOUND;
    6666        case STATUS_NOT_A_DIRECTORY:        return VERR_NOT_A_DIRECTORY;
     67
     68        case STATUS_UNEXPECTED_NETWORK_ERROR:
     69                                            return VERR_NET_IO_ERROR;
    6770    }
    6871
  • 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