Changeset 69753 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- Nov 19, 2017 2:27:58 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/nt/ntBldSymDb.cpp
r69111 r69753 1003 1003 1004 1004 /* Open directory. */ 1005 PRTDIR pDir;1006 int rc = RTDirOpen(& pDir, pszDir);1005 RTDIR hDir; 1006 int rc = RTDirOpen(&hDir, pszDir); 1007 1007 if (RT_FAILURE(rc)) 1008 1008 return RTMsgErrorExit(RTEXITCODE_FAILURE, "RTDirOpen failed on '%s': %Rrc\n", pszDir, rc); … … 1023 1023 /* Get the next directory. */ 1024 1024 size_t cbDirEntry = MY_DIRENTRY_BUF_SIZE; 1025 rc = RTDirReadEx( pDir, pDirEntry, &cbDirEntry, RTFSOBJATTRADD_UNIX, RTPATH_F_ON_LINK);1025 rc = RTDirReadEx(hDir, pDirEntry, &cbDirEntry, RTFSOBJATTRADD_UNIX, RTPATH_F_ON_LINK); 1026 1026 if (RT_FAILURE(rc)) 1027 1027 break; 1028 1028 1029 1029 /* Skip the dot and dot-dot links. */ 1030 if ( (pDirEntry->cbName == 1 && pDirEntry->szName[0] == '.') 1031 || (pDirEntry->cbName == 2 && pDirEntry->szName[0] == '.' && pDirEntry->szName[1] == '.')) 1030 if (RTDirEntryExIsStdDotLink(pDirEntry)) 1032 1031 continue; 1033 1032 … … 1077 1076 rcExit = RTMsgErrorExit(RTEXITCODE_FAILURE, "RTDirReadEx failed: %Rrc\npszDir=%.*s", rc, cchDir, pszDir); 1078 1077 1079 rc = RTDirClose( pDir);1078 rc = RTDirClose(hDir); 1080 1079 if (RT_FAILURE(rc)) 1081 1080 rcExit = RTMsgErrorExit(RTEXITCODE_FAILURE, "RTDirClose failed: %Rrc\npszDir=%.*s", rc, cchDir, pszDir);
Note:
See TracChangeset
for help on using the changeset viewer.