Changeset 69716 in vbox for trunk/src/VBox/Runtime/r3/generic
- Timestamp:
- Nov 16, 2017 2:31:25 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/generic/dirrel-r3-generic.cpp
r69705 r69716 211 211 * @param fMode The mode of the new directory. 212 212 * @param fCreate Create flags, RTDIRCREATE_FLAGS_XXX. 213 * @param phSubDir Where to return the handle of the created directory. 214 * Optional. 213 215 * 214 216 * @sa RTDirCreate 215 217 */ 216 RTDECL(int) RTDirRelDirCreate(PRTDIR hDir, const char *pszRelPath, RTFMODE fMode, uint32_t fCreate) 217 { 218 PRTDIR pThis = hDir; 219 AssertPtrReturn(pThis, VERR_INVALID_HANDLE); 220 AssertReturn(pThis->u32Magic == RTDIR_MAGIC, VERR_INVALID_HANDLE); 221 222 char szPath[RTPATH_MAX]; 223 int rc = rtDirRelBuildFullPath(pThis, szPath, sizeof(szPath), pszRelPath); 224 if (RT_SUCCESS(rc)) 218 RTDECL(int) RTDirRelDirCreate(PRTDIR hDir, const char *pszRelPath, RTFMODE fMode, uint32_t fCreate, PRTDIR *phSubDir) 219 { 220 PRTDIR pThis = hDir; 221 AssertPtrReturn(pThis, VERR_INVALID_HANDLE); 222 AssertReturn(pThis->u32Magic == RTDIR_MAGIC, VERR_INVALID_HANDLE); 223 224 char szPath[RTPATH_MAX]; 225 int rc = rtDirRelBuildFullPath(pThis, szPath, sizeof(szPath), pszRelPath); 226 if (RT_SUCCESS(rc)) 227 { 225 228 rc = RTDirCreate(szPath, fMode, fCreate); 229 if (RT_SUCCESS(rc) && phSubDir) 230 rc = RTDirOpen(phSubDir, szPath); 231 } 226 232 return rc; 227 233 }
Note:
See TracChangeset
for help on using the changeset viewer.