Small fix to fs::GetDirListing when trying to list an inexistent directory

master
Perttu Ahola 2012-03-25 23:16:53 +03:00
parent 728d01ef4b
commit dcef5183f7
1 changed files with 2 additions and 3 deletions

View File

@ -74,9 +74,8 @@ std::vector<DirListNode> GetDirListing(std::string pathstring)
if (hFind == INVALID_HANDLE_VALUE)
{
errorstream<<"GetDirListing: Invalid file handle. Error is "
<<GetLastError()<<std::endl;
retval = (-1);
retval = (-1);
goto Cleanup;
}
else
{