REVIEWED: LoadDirectoryFilesEx(), minor tweak #5569
This commit is contained in:
parent
1955516f54
commit
872cfae7ca
2 changed files with 5 additions and 2 deletions
|
|
@ -2773,6 +2773,8 @@ FilePathList LoadDirectoryFilesEx(const char *basePath, const char *filter, bool
|
|||
|
||||
if (DirectoryExists(basePath)) // It's a directory
|
||||
{
|
||||
if ((filter != NULL) && (filter[0] == '\0')) filter = NULL;
|
||||
|
||||
// SCAN 1: Count files
|
||||
unsigned int fileCounter = GetDirectoryFileCountEx(basePath, filter, scanSubdirs);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue