mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Fix extraction of ZIP files
This commit is contained in:
parent
df43c1f99b
commit
076e55a945
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ static int file_decompressed_subdir(const char *name, const char *valid_exts,
|
|||
decompress_state_t *dec = (decompress_state_t*)userdata;
|
||||
|
||||
/* Ignore directories. */
|
||||
if (path_is_directory(name))
|
||||
if (name[strlen(name) - 1] == '/' || name[strlen(name) - 1] == '\\')
|
||||
goto next_file;
|
||||
|
||||
if (strstr(name, dec->subdir) != name)
|
||||
|
@ -87,7 +87,7 @@ static int file_decompressed(const char *name, const char *valid_exts,
|
|||
decompress_state_t *dec = (decompress_state_t*)userdata;
|
||||
|
||||
/* Ignore directories. */
|
||||
if (path_is_directory(name))
|
||||
if (name[strlen(name) - 1] == '/' || name[strlen(name) - 1] == '\\')
|
||||
goto next_file;
|
||||
|
||||
/* Make directory */
|
||||
|
|
Loading…
Add table
Reference in a new issue