Don't print an error message for ERROR_PATH_NOT_FOUND in DirectoryIterator::Read

We do the same already for ERROR_FILE_NOT_FOUND. This fixes a harmless warning
when running the engine in a release directory where there is no planet/
directory.
Armin Burgmeier 2012-01-28 18:15:51 +01:00
parent a1370c2954
commit 86bc3ac417
1 changed files with 1 additions and 0 deletions

View File

@ -975,6 +975,7 @@ void DirectoryIterator::Read(const char *dirname)
{
switch (GetLastError())
{
case ERROR_PATH_NOT_FOUND:
case ERROR_FILE_NOT_FOUND:
// This is okay, either the directory doesn't exist or there are no files
return;