Skip to content
Snippets Groups Projects
Commit dcef5183 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

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

parent 728d01ef
No related branches found
No related tags found
No related merge requests found
......@@ -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
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment