disktidy: fix the situation where specifying that a dir should be deleted could lead to removing a file with that name

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28897 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Alexander Levin 2010-12-25 21:38:42 +00:00
parent de317d46dc
commit a0516f036f

View file

@ -179,7 +179,8 @@ bool tidy_remove_item(char *item, int attr)
return false;
if (attr&ATTR_DIRECTORY)
ret = tidy_types[i].directory;
else ret = true;
else
ret = !tidy_types[i].directory;
}
}
return ret;