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

kFsCache: KFSLOOKUPERROR_PATH_TOO_SHORT.

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.