* [Qemu-devel] [4815] block-vvfat.c - fix is_free predicate, by Tristan Gingold.
@ 2008-07-01 16:44 Thiemo Seufer
0 siblings, 0 replies; only message in thread
From: Thiemo Seufer @ 2008-07-01 16:44 UTC (permalink / raw)
To: qemu-devel
Revision: 4815
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4815
Author: ths
Date: 2008-07-01 16:44:58 +0000 (Tue, 01 Jul 2008)
Log Message:
-----------
block-vvfat.c - fix is_free predicate, by Tristan Gingold.
Modified Paths:
--------------
trunk/block-vvfat.c
Modified: trunk/block-vvfat.c
===================================================================
--- trunk/block-vvfat.c 2008-07-01 16:40:04 UTC (rev 4814)
+++ trunk/block-vvfat.c 2008-07-01 16:44:58 UTC (rev 4815)
@@ -454,8 +454,7 @@
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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-01 16:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-01 16:44 [Qemu-devel] [4815] block-vvfat.c - fix is_free predicate, by Tristan Gingold Thiemo Seufer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).