Changeset 3082 in kBuild for trunk/src/lib/nt/kFsCache.c
- Timestamp:
- Oct 2, 2017 7:23:17 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/nt/kFsCache.c
r3007 r3082 2748 2748 * failed. 2749 2749 * @param ppLastAncestor Where to return the last parent element found 2750 * (referenced) in case of error an path/file not2751 * found problem. Optional.2750 * (referenced) in case of error like an path/file 2751 * not found problem. Optional. 2752 2752 */ 2753 2753 PKFSOBJ kFsCacheLookupRelativeToDirA(PKFSCACHE pCache, PKFSDIR pParent, const char *pszPath, KU32 cchPath, KU32 fFlags, … … 2795 2795 { /* likely */ } 2796 2796 else 2797 { 2798 if (ppLastAncestor) 2799 *ppLastAncestor = kFsCacheObjRetainInternal(&pParent->Obj); 2797 2800 return NULL; 2801 } 2798 2802 2799 2803 /* … … 2836 2840 { /* likely */ } 2837 2841 else 2842 { 2843 if (ppLastAncestor) 2844 *ppLastAncestor = kFsCacheObjRetainInternal(&pParent->Obj); 2838 2845 return NULL; 2846 } 2839 2847 return kFsCacheObjRetainInternal(pChild); 2840 2848 } … … 2872 2880 } 2873 2881 2882 /* not reached */ 2874 2883 return NULL; 2875 2876 2884 } 2877 2885 … … 2894 2902 * failed. 2895 2903 * @param ppLastAncestor Where to return the last parent element found 2896 * (referenced) in case of error an path/file not2897 * found problem. Optional.2904 * (referenced) in case of error like an path/file 2905 * not found problem. Optional. 2898 2906 */ 2899 2907 PKFSOBJ kFsCacheLookupRelativeToDirW(PKFSCACHE pCache, PKFSDIR pParent, const wchar_t *pwszPath, KU32 cwcPath, KU32 fFlags, … … 2941 2949 { /* likely */ } 2942 2950 else 2951 { 2952 if (ppLastAncestor) 2953 *ppLastAncestor = kFsCacheObjRetainInternal(&pParent->Obj); 2943 2954 return NULL; 2955 } 2944 2956 2945 2957 /* … … 2982 2994 { /* likely */ } 2983 2995 else 2996 { 2997 if (ppLastAncestor) 2998 *ppLastAncestor = kFsCacheObjRetainInternal(&pParent->Obj); 2984 2999 return NULL; 3000 } 2985 3001 return kFsCacheObjRetainInternal(pChild); 2986 3002 } … … 3020 3036 3021 3037 return NULL; 3022 3023 3038 } 3024 3039 … … 3097 3112 || kFsCacheRefreshObj(pCache, pRoot, penmError)) 3098 3113 return kFsCacheObjRetainInternal(pRoot); 3114 if (ppLastAncestor) 3115 *ppLastAncestor = kFsCacheObjRetainInternal(pRoot); 3099 3116 return NULL; 3100 3117 } … … 3196 3213 || kFsCacheRefreshObj(pCache, pRoot, penmError)) 3197 3214 return kFsCacheObjRetainInternal(pRoot); 3215 if (ppLastAncestor) 3216 *ppLastAncestor = kFsCacheObjRetainInternal(pRoot); 3198 3217 return NULL; 3199 3218 } … … 3514 3533 || *penmError == KFSLOOKUPERROR_UNSUPPORTED ) 3515 3534 kFsCacheCreatePathHashTabEntryA(pCache, pFsObj, pchPath, cchPath, uHashPath, idxHashTab, fAbsolute, 3516 pLastAncestor ? pLastAncestor-> bObjType& KFSOBJ_F_USE_CUSTOM_GEN : 0, *penmError);3535 pLastAncestor ? pLastAncestor->fFlags & KFSOBJ_F_USE_CUSTOM_GEN : 0, *penmError); 3517 3536 if (pLastAncestor) 3518 3537 kFsCacheObjRelease(pCache, pLastAncestor); … … 3622 3641 || *penmError == KFSLOOKUPERROR_UNSUPPORTED ) 3623 3642 kFsCacheCreatePathHashTabEntryW(pCache, pFsObj, pwcPath, cwcPath, uHashPath, idxHashTab, fAbsolute, 3624 pLastAncestor ? pLastAncestor-> bObjType& KFSOBJ_F_USE_CUSTOM_GEN : 0, *penmError);3643 pLastAncestor ? pLastAncestor->fFlags & KFSOBJ_F_USE_CUSTOM_GEN : 0, *penmError); 3625 3644 if (pLastAncestor) 3626 3645 kFsCacheObjRelease(pCache, pLastAncestor);
Note:
See TracChangeset
for help on using the changeset viewer.