DOS 6.22 fix (Johannes Schindelin)
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 19 Nov 2005 18:17:16 +0000 (18:17 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 19 Nov 2005 18:17:16 +0000 (18:17 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1627 c046a42c-6fe2-441c-8c8c-71466251a162

block-vvfat.c

index 7bce91e..3409f88 100644 (file)
@@ -703,7 +703,7 @@ static int init_directory(BDRVVVFATState* s,const char* dirname)
     memset(&(s->first_sectors[0]),0,0x40*0x200);
 
     /* TODO: if FAT32, this is probably wrong */
-    s->sectors_per_fat=0xfc;
+    s->sectors_per_fat=0xec;
     s->sectors_per_cluster=0x10;
     s->cluster_size=s->sectors_per_cluster*0x200;
     s->cluster=malloc(s->cluster_size);