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
This commit is contained in:
		
							parent
							
								
									a982b5310d
								
							
						
					
					
						commit
						ad1a897e52
					
				@ -454,8 +454,7 @@ static inline direntry_t* create_long_filename(BDRVVVFATState* s,const char* fil
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
static char is_free(const direntry_t* direntry)
 | 
					static char is_free(const direntry_t* direntry)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    /* return direntry->name[0]==0 ; */
 | 
					    return direntry->name[0]==0xe5 || direntry->name[0]==0x00;
 | 
				
			||||||
    return direntry->attributes == 0 || direntry->name[0]==0xe5;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static char is_volume_label(const direntry_t* direntry)
 | 
					static char is_volume_label(const direntry_t* direntry)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user