mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-22 05:51:59 +00:00
SDL_GlobDirectory(): Don't descend into sub-directories, if not requested by pattern
This commit is contained in:
parent
f13cd9a666
commit
d6129d063f
1 changed files with 1 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ static bool WildcardMatch(const char *pattern, const char *str, bool *matched_to
|
|||
pch = *(++pattern);
|
||||
}
|
||||
|
||||
*matched_to_dir = ((pch == '/') || (pch == '\0')); // end of string and the pattern is complete or failed at a '/'? We should descend into this directory.
|
||||
*matched_to_dir = (pch == '/'); // end of string and the pattern failed at a '/'? We should descend into this directory.
|
||||
|
||||
return (pch == '\0'); // survived the whole pattern? That's a match!
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue