PhotoRec: fix when using a blocksize of 1 byte
This commit is contained in:
parent
d14031f68d
commit
c432c0c897
1 changed files with 1 additions and 1 deletions
|
@ -885,7 +885,7 @@ static int file_block_remove_from_sp(alloc_data_t *list_search_space, alloc_data
|
|||
tmp->start+=blocksize;
|
||||
*offset += blocksize;
|
||||
tmp->file_stat=NULL;
|
||||
if(tmp->start < tmp->end)
|
||||
if(tmp->start <= tmp->end)
|
||||
return 0;
|
||||
*new_current_search_space=td_list_entry(tmp->list.next, alloc_data_t, list);
|
||||
*offset=(*new_current_search_space)->start;
|
||||
|
|
Loading…
Reference in a new issue