Io: Linux buildfix.

Fixes #11300.
This commit is contained in:
Unknown W. Brackets
2018-08-13 04:33:52 -07:00
parent 39eb2b4153
commit ac5467ca67

View File

@@ -900,7 +900,7 @@ std::vector<PSPFileInfo> DirectoryFileSystem::GetDirListing(std::string path) {
localtime_r((time_t*)&s.st_atime,&entry.atime);
localtime_r((time_t*)&s.st_ctime,&entry.ctime);
localtime_r((time_t*)&s.st_mtime,&entry.mtime);
if (!listingRoot || (wcscmp(findData.cFileName, L"..") && wcscmp(findData.cFileName, L".")))
if (!listingRoot || (strcmp(dirp->d_name, "..") && strcmp(dirp->d_name, ".")))
myVector.push_back(entry);
}
closedir(dp);