Fix compile error in Linux

This commit is contained in:
Kirigaya Kazuto 2018-06-25 11:22:50 +08:00
parent e983119e2d
commit 8e6216beb9

View File

@ -41,7 +41,7 @@ bool DirWalk::isReady() const
int DirWalk::next(std::string& name, bool& is_dir)
{
dirent* file = NULL;
if ((file = readdir(Dir)) != NULL)
if ((file = readdir(_p->dir)) != NULL)
{
if (file->d_type == DT_DIR)
{