Fix PhotoRec FAT free space carving, the first sector of cluster 2 was erronously removed from the disk space to analyse.

This commit is contained in:
Christophe Grenier 2009-02-16 20:01:52 +01:00
parent 1bb6df5595
commit ee97a896a2

View file

@ -50,7 +50,7 @@ static void fat16_remove_used_space(disk_t *disk_car,const partition_t *partitio
buffer=(unsigned char *)MALLOC(sector_size);
p16=(const uint16_t*)buffer;
del_search_space(list_search_space, partition->part_offset,
partition->part_offset+(uint64_t)(start_data*sector_size));
partition->part_offset+(uint64_t)(start_data*sector_size)-1);
for(prev_cluster=2;prev_cluster<=no_of_cluster+1;prev_cluster++)
{
unsigned int offset_o;