mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-11-04 20:15:09 +01:00
Fix check for virtual dir in vrt_closedir to avoid calling closedir() with a virtual dir
This commit is contained in:
parent
81707c4a30
commit
f5d6c3d508
@ -402,7 +402,7 @@ int vrt_closedir(DIR_P *iter) {
|
|||||||
if (!iter) return -1;
|
if (!iter) return -1;
|
||||||
|
|
||||||
if (iter->dir) {
|
if (iter->dir) {
|
||||||
if (iter->virt_root) {
|
if (iter->virt_root || iter->virtual_fs || iter->virtual_fs_vol) {
|
||||||
free(iter->dir);
|
free(iter->dir);
|
||||||
iter->dir = NULL;
|
iter->dir = NULL;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user