pathut: windows error message
This commit is contained in:
@@ -1303,6 +1303,7 @@ bool PathDirContents::opendir()
|
||||
SYSPATH(dp, sysdir);
|
||||
m->dirhdl = OPENDIR(sysdir);
|
||||
#ifdef _WIN32
|
||||
if (nullptr == m->dirhdl) {
|
||||
int rc = GetLastError();
|
||||
LOGERR("opendir failed: LastError " << rc << endl);
|
||||
if (rc == ERROR_NETNAME_DELETED) {
|
||||
@@ -1311,8 +1312,9 @@ bool PathDirContents::opendir()
|
||||
// Make sure it's not one of the permissible ones
|
||||
errno = ENODEV;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return ! (nullptr == m->dirhdl);
|
||||
return nullptr != m->dirhdl;
|
||||
}
|
||||
|
||||
void PathDirContents::rewinddir()
|
||||
|
||||
Reference in New Issue
Block a user