Fix compile error in Linux
This commit is contained in:
parent
e983119e2d
commit
8e6216beb9
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user