Fixed bug in previous commit. Ooops.
This commit is contained in:
parent
c1849ed7d8
commit
e3bb0dfc9d
|
@ -186,7 +186,7 @@ namespace Sortix
|
||||||
if ( *path++ != '/' ) { Error::Set(Error::ENOENT); return NULL; }
|
if ( *path++ != '/' ) { Error::Set(Error::ENOENT); return NULL; }
|
||||||
|
|
||||||
// Hack to prevent / from being a filename.
|
// Hack to prevent / from being a filename.
|
||||||
if ( path++ == 0 ) { Error::Set(Error::ENOENT); return NULL; }
|
if ( path == 0 ) { Error::Set(Error::ENOENT); return NULL; }
|
||||||
|
|
||||||
if ( files )
|
if ( files )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue