Changeset 71978 in vbox for trunk/src/VBox
- Timestamp:
- Apr 23, 2018 11:26:21 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/nt/RTPathQueryInfo-nt.cpp
r70940 r71978 179 179 * @param pvBuf Query buffer space. 180 180 * @param cbBuf Size of the buffer. ASSUMES lots of space. 181 * @param rcNtCaller The status code that got us here. 181 182 */ 182 183 static int rtPathNtQueryInfoInDirectoryObject(OBJECT_ATTRIBUTES *pObjAttr, PRTFSOBJINFO pObjInfo, 183 184 RTFSOBJATTRADD enmAddAttr, uint32_t fFlags, 184 void *pvBuf, size_t cbBuf )185 void *pvBuf, size_t cbBuf, NTSTATUS rcNtCaller) 185 186 { 186 187 RT_NOREF(fFlags); … … 271 272 return VERR_FILE_NOT_FOUND; 272 273 } 274 else 275 return RTErrConvertFromNtStatus(rcNtCaller); 273 276 return RTErrConvertFromNtStatus(rcNt); 274 277 } … … 410 413 || rcNt == STATUS_INVALID_PARAMETER) 411 414 { 412 rc = rtPathNtQueryInfoInDirectoryObject(&ObjAttr, pObjInfo, enmAddAttr, fFlags, &uBuf, sizeof(uBuf) );415 rc = rtPathNtQueryInfoInDirectoryObject(&ObjAttr, pObjInfo, enmAddAttr, fFlags, &uBuf, sizeof(uBuf), rcNt); 413 416 if (RT_SUCCESS(rc)) 414 417 return rc; … … 517 520 /*|| rcNt == STATUS_INVALID_PARAMETER*/) 518 521 { 519 rc = rtPathNtQueryInfoInDirectoryObject(&ObjAttr, pObjInfo, enmAddAttr, fFlags, &uBuf, sizeof(uBuf) );522 rc = rtPathNtQueryInfoInDirectoryObject(&ObjAttr, pObjInfo, enmAddAttr, fFlags, &uBuf, sizeof(uBuf), rcNt); 520 523 if (RT_SUCCESS(rc)) 521 524 return rc; … … 618 621 { 619 622 InitializeObjectAttributes(&ObjAttr, pNtName, OBJ_CASE_INSENSITIVE, hRootDir, NULL); 620 rc = rtPathNtQueryInfoInDirectoryObject(&ObjAttr, pObjInfo, enmAddAttr, fFlags, &uBuf, sizeof(uBuf) );623 rc = rtPathNtQueryInfoInDirectoryObject(&ObjAttr, pObjInfo, enmAddAttr, fFlags, &uBuf, sizeof(uBuf), rcNt); 621 624 if (RT_FAILURE(rc)) 622 625 rc = RTErrConvertFromNtStatus(rcNt);
Note:
See TracChangeset
for help on using the changeset viewer.