Changeset 154 for trunk/src/helpers/wphandle.c
- Timestamp:
- Apr 16, 2002, 8:27:19 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/wphandle.c
r142 r154 852 852 * 853 853 *@@added V0.9.16 (2001-10-02) [umoeller] 854 *@@changed V0.9.19 (2002-04-14) [umoeller]: fixed wrong error for parent handles 854 855 */ 855 856 … … 857 858 USHORT usHandle, // in: handle to search for 858 859 PXSTRING pstrFilename, // in/out: filename 860 ULONG ulLevel, // in: recursion level (initially 0) 859 861 PNODE *ppNode) // out: node found (ptr can be NULL) 860 862 { … … 871 873 // node has parent: 872 874 // recurse first 873 if (arc = ComposeThis(pHandlesBuf, 874 pNode->usParentHandle, 875 pstrFilename, 876 ppNode)) 877 { 878 if (arc == ERROR_INVALID_HANDLE) 879 // parent handle not found: 880 arc = ERROR_WPH_INVALID_PARENT_HANDLE; 881 // else leave the APIRET, this might be dangerous 882 } 883 else 875 if (!(arc = ComposeThis(pHandlesBuf, 876 pNode->usParentHandle, 877 pstrFilename, 878 ulLevel + 1, 879 ppNode))) 884 880 { 885 881 // no error: … … 893 889 } 894 890 else 895 arc = ERROR_INVALID_HANDLE; 891 // handle not found: 892 if (ulLevel == 0) // V0.9.19 (2002-04-14) [umoeller] 893 arc = ERROR_INVALID_HANDLE; 894 else 895 arc = ERROR_WPH_INVALID_PARENT_HANDLE; 896 896 897 897 if (!arc) … … 953 953 usHandle, 954 954 &str, 955 0, // initial recursion level 955 956 ppNode))) 956 957 if (str.ulLength > cbFilename - 1)
Note:
See TracChangeset
for help on using the changeset viewer.