mirror of
https://github.com/minetest/minetest.git
synced 2024-12-24 15:12:23 +01:00
Small fix to fs::GetDirListing when trying to list an inexistent directory
This commit is contained in:
parent
728d01ef4b
commit
dcef5183f7
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user