diff options
Diffstat (limited to 'apps/plugins/theme_remove.c')
| -rw-r--r-- | apps/plugins/theme_remove.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/theme_remove.c b/apps/plugins/theme_remove.c index d679338..674342a 100644 --- a/apps/plugins/theme_remove.c +++ b/apps/plugins/theme_remove.c @@ -236,7 +236,8 @@ static int remove_dir(char* dirname, int len) /* append name to current directory */ rb->snprintf(dirname+dirlen, len-dirlen, "/%s", entry->d_name); - if (entry->attribute & ATTR_DIRECTORY) + struct dirinfo info = rb->dir_get_info(dir, entry); + if (info.attribute & ATTR_DIRECTORY) { /* remove a subdirectory */ if (!rb->strcmp((char *)entry->d_name, ".") || |