summaryrefslogtreecommitdiffstats
path: root/src/fat_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-01-14 23:48:51 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2008-01-14 23:48:51 +0100
commit9a9764e493c4d016343c050d099af4bdbdc58862 (patch)
tree88ba3d3282e2d20710fa6499774315aa6da9655c /src/fat_dir.c
parent3c8e7a507ab58a485b677a1bf58aa6968267fe77 (diff)
PhotoRec: expert can stop pass 0 and set the blocksize
Diffstat (limited to 'src/fat_dir.c')
-rw-r--r--src/fat_dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fat_dir.c b/src/fat_dir.c
index 3501d2e..bd74e4f 100644
--- a/src/fat_dir.c
+++ b/src/fat_dir.c
@@ -254,7 +254,7 @@ static file_data_t *fat12_dir(disk_t *disk_car, const partition_t *partition, di
memset(buffer_dir,0,fat_sector_size(fat_header)*cluster_size*10);
for(cluster=first_cluster, nbr_cluster=0;
((cluster&0x0ff8)!=(unsigned)FAT12_EOC) && (cluster>=2) && (nbr_cluster<10) && (stop==0);
- cluster=get_next_cluster(disk_car,partition, UP_FAT12,le16(fat_header->reserved), cluster), nbr_cluster++)
+ cluster=get_next_cluster(disk_car, partition, UP_FAT12, le16(fat_header->reserved), cluster), nbr_cluster++)
{
uint64_t start=partition->part_offset+(uint64_t)(le16(fat_header->reserved)+fat_header->fats*le16(fat_header->fat_length)+(get_dir_entries(fat_header)*32+fat_sector_size(fat_header)-1)/fat_sector_size(fat_header)+(uint64_t)(cluster-2)*cluster_size)*fat_sector_size(fat_header);
if(dir_data->verbose>0)