VirtualBox

Changeset 78373 in vbox for trunk/src


Ignore:
Timestamp:
May 3, 2019 11:30:04 AM (6 years ago)
Author:
vboxsync
Message:

tstRTSymlink: Use the enmType parameter so recent w10 stop failing. Also, translate the STATUS_FILE_IS_A_DIRECTORY we get when using the wrong symlink type.

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

Legend:

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

    r77816 r78373  
    8686        case STATUS_NO_MEDIA_IN_DEVICE:     return VERR_DRIVE_IS_EMPTY;
    8787        case STATUS_ACCESS_VIOLATION:       return VERR_INVALID_POINTER;
     88        case STATUS_FILE_IS_A_DIRECTORY:    return VERR_IS_A_DIRECTORY;
    8889
    8990        case STATUS_REPARSE_POINT_NOT_RESOLVED:
  • trunk/src/VBox/Runtime/testcase/tstRTSymlink.cpp

    r76553 r78373  
    6767    RTTESTI_CHECK_RC_OK_RETV(RTPathJoin(szPath1, sizeof(szPath1), pszBaseDir, "tstRTSymlink-link-1"));
    6868    RTSymlinkDelete(szPath1, 0); /* clean up previous run */
    69     int rc = RTSymlinkCreate(szPath1, pszTarget, RTSYMLINKTYPE_FILE, 0);
     69    int rc = RTSymlinkCreate(szPath1, pszTarget, enmType, 0);
    7070    if (rc == VERR_NOT_SUPPORTED)
    7171    {
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