PhotoRec: Remove FAT copies and boot sector when searching from FAT32 free space

This commit is contained in:
Christophe Grenier 2014-01-25 14:56:41 +01:00
parent da4a34838d
commit 6471bd8ac5

View file

@ -143,6 +143,8 @@ static void fat32_remove_used_space(disk_t *disk_car,const partition_t *partitio
log_trace("fat32_remove_used_space\n");
buffer=(unsigned char *)MALLOC(sector_size);
p32=(uint32_t*)buffer;
del_search_space(list_search_space, partition->part_offset,
partition->part_offset+(uint64_t)(start_data*sector_size)-1);
for(prev_cluster=2;prev_cluster<=no_of_cluster+1;prev_cluster++)
{
unsigned long int cluster;