Changeset 3372 in kBuild
- Timestamp:
- Jun 10, 2020 11:00:45 AM (5 years ago)
- Location:
- trunk/src/lib/nt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/nt/kFsCache.c
r3362 r3372 3311 3311 /* The path is too long! */ 3312 3312 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; 3314 3314 return NULL; 3315 3315 } … … 3351 3351 /* The path is too long! */ 3352 3352 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; 3354 3354 return NULL; 3355 3355 } … … 3583 3583 } 3584 3584 3585 *penmError = KFSLOOKUPERROR_PATH_TOO_LONG;3585 *penmError = cchPath > 0 ? KFSLOOKUPERROR_PATH_TOO_LONG : KFSLOOKUPERROR_PATH_TOO_SHORT; 3586 3586 return NULL; 3587 3587 } … … 3691 3691 } 3692 3692 3693 *penmError = KFSLOOKUPERROR_PATH_TOO_LONG;3693 *penmError = cwcPath > 0 ? KFSLOOKUPERROR_PATH_TOO_LONG : KFSLOOKUPERROR_PATH_TOO_SHORT; 3694 3694 return NULL; 3695 3695 } -
trunk/src/lib/nt/kFsCache.h
r3362 r3372 300 300 /** The path is too long. */ 301 301 KFSLOOKUPERROR_PATH_TOO_LONG, 302 /** The path is too short. */ 303 KFSLOOKUPERROR_PATH_TOO_SHORT, 302 304 /** Unsupported path type. */ 303 305 KFSLOOKUPERROR_UNSUPPORTED,
Note:
See TracChangeset
for help on using the changeset viewer.