Changeset 79370 in vbox for trunk/src/VBox/Runtime/r3/nt
- Timestamp:
- Jun 27, 2019 2:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/nt/direnum-r3-nt.cpp
r79155 r79370 127 127 fOptions |= FILE_OPEN_REPARSE_POINT; 128 128 129 ACCESS_MASK fDesiredAccess = FILE_LIST_DIRECTORY | FILE_READ_ATTRIBUTES | FILE_TRAVERSE | SYNCHRONIZE; 129 130 for (;;) 130 131 { 131 132 if (pvNativeRelative == NULL) 132 133 rc = RTNtPathOpenDir(pDir->pszPath, 133 FILE_LIST_DIRECTORY | FILE_READ_ATTRIBUTES | FILE_TRAVERSE | SYNCHRONIZE,134 fDesiredAccess, 134 135 FILE_SHARE_READ | FILE_SHARE_WRITE, 135 136 fOptions, … … 145 146 rc = RTNtPathOpenDirEx((HANDLE)hRelativeDir, 146 147 (struct _UNICODE_STRING *)pvNativeRelative, 147 FILE_LIST_DIRECTORY | FILE_READ_ATTRIBUTES | FILE_TRAVERSE | SYNCHRONIZE,148 fDesiredAccess, 148 149 FILE_SHARE_READ | FILE_SHARE_WRITE, 149 150 fOptions, … … 156 157 #endif 157 158 ); 159 if ( rc == VERR_ACCESS_DENIED /* Seen with c:\windows\system32\com\dmp on w7 & w10 (admin mode). */ 160 && (fDesiredAccess & FILE_TRAVERSE)) 161 { 162 fDesiredAccess &= ~FILE_TRAVERSE; 163 continue; 164 } 158 165 if ( !(fOptions & FILE_OPEN_REPARSE_POINT) 159 166 || (rc != VINF_SUCCESS && rc != VERR_INVALID_PARAMETER) )
Note:
See TracChangeset
for help on using the changeset viewer.