VirtualBox

Changeset 3372 in kBuild


Ignore:
Timestamp:
Jun 10, 2020 11:00:45 AM (5 years ago)
Author:
bird
Message:

kFsCache: KFSLOOKUPERROR_PATH_TOO_SHORT.

Location:
trunk/src/lib/nt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/nt/kFsCache.c

    r3362 r3372  
    33113311    /* The path is too long! */
    33123312    kHlpAssertMsgFailed(("'%s' -> cchFull=%u\n", pszPath, cchFull));
    3313     *penmError = KFSLOOKUPERROR_PATH_TOO_LONG;
     3313    *penmError = cchFull >= 3 ? KFSLOOKUPERROR_PATH_TOO_LONG : KFSLOOKUPERROR_PATH_TOO_SHORT;
    33143314    return NULL;
    33153315}
     
    33513351    /* The path is too long! */
    33523352    kHlpAssertMsgFailed(("'%ls' -> cwcFull=%u\n", pwszPath, cwcFull));
    3353     *penmError = KFSLOOKUPERROR_PATH_TOO_LONG;
     3353    *penmError = cwcFull >= 3 ? KFSLOOKUPERROR_PATH_TOO_LONG : KFSLOOKUPERROR_PATH_TOO_SHORT;
    33543354    return NULL;
    33553355}
     
    35833583    }
    35843584
    3585     *penmError = KFSLOOKUPERROR_PATH_TOO_LONG;
     3585    *penmError = cchPath > 0 ? KFSLOOKUPERROR_PATH_TOO_LONG : KFSLOOKUPERROR_PATH_TOO_SHORT;
    35863586    return NULL;
    35873587}
     
    36913691    }
    36923692
    3693     *penmError = KFSLOOKUPERROR_PATH_TOO_LONG;
     3693    *penmError = cwcPath > 0 ? KFSLOOKUPERROR_PATH_TOO_LONG : KFSLOOKUPERROR_PATH_TOO_SHORT;
    36943694    return NULL;
    36953695}
  • trunk/src/lib/nt/kFsCache.h

    r3362 r3372  
    300300    /** The path is too long. */
    301301    KFSLOOKUPERROR_PATH_TOO_LONG,
     302    /** The path is too short. */
     303    KFSLOOKUPERROR_PATH_TOO_SHORT,
    302304    /** Unsupported path type. */
    303305    KFSLOOKUPERROR_UNSUPPORTED,
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