Changeset 69816 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Nov 23, 2017 6:54:20 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/vfs/vfsbase.cpp
r69815 r69816 2688 2688 if (RT_SUCCESS(rc)) 2689 2689 { 2690 if ( pPath->fDirSlash 2691 || pPath->cComponents == 0) 2692 fObjFlags &= ~RTVFSOBJ_F_OPEN_ANY | RTVFSOBJ_F_OPEN_DIRECTORY; 2693 2690 2694 if (pPath->cComponents > 0) 2691 2695 { … … 2706 2710 if (pPath->fDirSlash) 2707 2711 { 2708 RTVFSDIR hVfs Dir;2712 RTVFSDIR hVfsSubDir; 2709 2713 RTVfsLockAcquireWrite(pVfsParentDir->Base.hLock); 2710 rc = pVfsParentDir->pOps->pfnOpenDir(pVfsParentDir->Base.pvThis, pszEntryName, 0 /** @todo fFlags*/, &hVfsDir); 2714 rc = pVfsParentDir->pOps->pfnOpenDir(pVfsParentDir->Base.pvThis, pszEntryName, 2715 0 /** @todo fFlags*/, &hVfsSubDir); 2711 2716 RTVfsLockReleaseWrite(pVfsParentDir->Base.hLock); 2712 2717 if (RT_SUCCESS(rc)) 2713 2718 { 2714 *phVfsObj = RTVfsObjFromDir(hVfs Dir);2715 RTVfsDirRelease(hVfs Dir);2719 *phVfsObj = RTVfsObjFromDir(hVfsSubDir); 2720 RTVfsDirRelease(hVfsSubDir); 2716 2721 AssertStmt(*phVfsObj != NIL_RTVFSOBJ, rc = VERR_INTERNAL_ERROR_3); 2717 2722 }
Note:
See TracChangeset
for help on using the changeset viewer.