mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-12-06 07:12:28 +01:00
Bugfix
This commit is contained in:
parent
ff359ed118
commit
e676d0bdcf
|
|
@ -755,7 +755,7 @@ bool fs::dir::get_next(std::string& name, stat_t& info)
|
||||||
const auto found = ::readdir((DIR*)m_dd);
|
const auto found = ::readdir((DIR*)m_dd);
|
||||||
|
|
||||||
struct stat64 file_info;
|
struct stat64 file_info;
|
||||||
if (fstatat64(::dirfd((DIR*)m_dd), found->d_name, &file_info, 0) < 0)
|
if (!found || fstatat64(::dirfd((DIR*)m_dd), found->d_name, &file_info, 0) < 0)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue