diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-01 16:44:58 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-01 16:44:58 +0000 |
commit | ad1a897e52d6928c3d2b98dec69d765bfc2d1121 (patch) | |
tree | 0d62bc474582abb022a5575e34ba3f112e87f424 /block-vvfat.c | |
parent | a982b5310de5d64b67ecced32ba1fd4051c437b8 (diff) | |
download | qemu-ad1a897e52d6928c3d2b98dec69d765bfc2d1121.tar.gz qemu-ad1a897e52d6928c3d2b98dec69d765bfc2d1121.tar.bz2 qemu-ad1a897e52d6928c3d2b98dec69d765bfc2d1121.zip |
block-vvfat.c - fix is_free predicate, by Tristan Gingold.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4815 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block-vvfat.c')
-rw-r--r-- | block-vvfat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/block-vvfat.c b/block-vvfat.c index a93fde9702..f5ae4f1648 100644 --- a/block-vvfat.c +++ b/block-vvfat.c @@ -454,8 +454,7 @@ static inline direntry_t* create_long_filename(BDRVVVFATState* s,const char* fil static char is_free(const direntry_t* direntry) { - /* return direntry->name[0]==0 ; */ - return direntry->attributes == 0 || direntry->name[0]==0xe5; + return direntry->name[0]==0xe5 || direntry->name[0]==0x00; } static char is_volume_label(const direntry_t* direntry) |