Fix path access, found by Nalin.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2581 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
48f48aeacb
commit
78457b9333
|
@ -107,10 +107,11 @@ void CFileList::constructNative()
|
|||
}
|
||||
if (!tmpPath)
|
||||
return;
|
||||
// note that Path might be stringw, so use tmpPath for system call
|
||||
Path = tmpPath;
|
||||
delete [] tmpPath;
|
||||
// We use the POSIX compliant methods instead of scandir
|
||||
DIR* dirHandle=opendir(Path.c_str());
|
||||
DIR* dirHandle=opendir(tmpPath);
|
||||
delete [] tmpPath;
|
||||
if (!dirHandle)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue