Small fix to fs::GetDirListing when trying to list an inexistent directory
parent
728d01ef4b
commit
dcef5183f7
|
@ -74,9 +74,8 @@ std::vector<DirListNode> GetDirListing(std::string pathstring)
|
||||||
|
|
||||||
if (hFind == INVALID_HANDLE_VALUE)
|
if (hFind == INVALID_HANDLE_VALUE)
|
||||||
{
|
{
|
||||||
errorstream<<"GetDirListing: Invalid file handle. Error is "
|
retval = (-1);
|
||||||
<<GetLastError()<<std::endl;
|
goto Cleanup;
|
||||||
retval = (-1);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue