fix readdir
This commit is contained in:
parent
3b2de412c8
commit
bedf079af2
@ -24,6 +24,8 @@ CryOpenDir::~CryOpenDir() {
|
||||
|
||||
unique_ptr<vector<string>> CryOpenDir::readdir() const {
|
||||
::rewinddir(_dir);
|
||||
// Set errno=0 so we can detect whether it changed later
|
||||
errno = 0;
|
||||
|
||||
auto result = make_unique<vector<string>>();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user