Ver código fonte

use strstr instead of TextFindIndex (#4764)

pull/3880/merge
mannikim 3 meses atrás
committed by GitHub
pai
commit
ee946b2f16
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: B5690EEEBB952194
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      src/rcore.c

+ 2
- 2
src/rcore.c Ver arquivo

@ -3696,7 +3696,7 @@ static void ScanDirectoryFiles(const char *basePath, FilePathList *files, const
}
else
{
if (TextFindIndex(filter, DIRECTORY_FILTER_TAG) >= 0)
if (strstr(filter, DIRECTORY_FILTER_TAG) != NULL)
{
strcpy(files->paths[files->count], path);
files->count++;
@ -3762,7 +3762,7 @@ static void ScanDirectoryFilesRecursively(const char *basePath, FilePathList *fi
}
else
{
if ((filter != NULL) && (TextFindIndex(filter, DIRECTORY_FILTER_TAG) >= 0))
if ((filter != NULL) && (strstr(filter, DIRECTORY_FILTER_TAG) != NULL))
{
strcpy(files->paths[files->count], path);
files->count++;

Carregando…
Cancelar
Salvar