Changeset 69753 in vbox for trunk/src/VBox/Main/src-all
- Timestamp:
- Nov 19, 2017 2:27:58 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/ExtPackManagerImpl.cpp
r69500 r69753 1965 1965 */ 1966 1966 HRESULT hrc = S_OK; 1967 PRTDIR pDir;1968 int vrc = RTDirOpen(& pDir, szBaseDir);1967 RTDIR hDir; 1968 int vrc = RTDirOpen(&hDir, szBaseDir); 1969 1969 if (RT_SUCCESS(vrc)) 1970 1970 { … … 1972 1972 { 1973 1973 RTDIRENTRYEX Entry; 1974 vrc = RTDirReadEx( pDir, &Entry, NULL /*pcbDirEntry*/, RTFSOBJATTRADD_NOTHING, RTPATH_F_ON_LINK);1974 vrc = RTDirReadEx(hDir, &Entry, NULL /*pcbDirEntry*/, RTFSOBJATTRADD_NOTHING, RTPATH_F_ON_LINK); 1975 1975 if (RT_FAILURE(vrc)) 1976 1976 { … … 2013 2013 } 2014 2014 } 2015 RTDirClose( pDir);2015 RTDirClose(hDir); 2016 2016 } 2017 2017 /* else: ignore, the directory probably does not exist or something. */ … … 2541 2541 if (!fExists) 2542 2542 { 2543 PRTDIR pDir;2544 vrc = RTDirOpen(& pDir, m->strBaseDir.c_str());2543 RTDIR hDir; 2544 vrc = RTDirOpen(&hDir, m->strBaseDir.c_str()); 2545 2545 if (RT_SUCCESS(vrc)) 2546 2546 { … … 2548 2548 for (;;) 2549 2549 { 2550 vrc = RTDirReadEx( pDir, &Entry, NULL /*pcbDirEntry*/, RTFSOBJATTRADD_NOTHING, RTPATH_F_ON_LINK);2550 vrc = RTDirReadEx(hDir, &Entry, NULL /*pcbDirEntry*/, RTFSOBJATTRADD_NOTHING, RTPATH_F_ON_LINK); 2551 2551 if (RT_FAILURE(vrc)) 2552 2552 { … … 2562 2562 */ 2563 2563 vrc = RTPathJoin(szDir, sizeof(szDir), m->strBaseDir.c_str(), Entry.szName); /* not really necessary */ 2564 AssertLogRelRCReturnStmt(vrc, RTDirClose( pDir), E_UNEXPECTED);2564 AssertLogRelRCReturnStmt(vrc, RTDirClose(hDir), E_UNEXPECTED); 2565 2565 a_pszName = Entry.szName; 2566 2566 fExists = true; … … 2568 2568 } 2569 2569 } 2570 RTDirClose( pDir);2570 RTDirClose(hDir); 2571 2571 } 2572 2572 }
Note:
See TracChangeset
for help on using the changeset viewer.