summaryrefslogtreecommitdiffstats
path: root/src/fat_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-19 16:13:20 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-19 16:13:20 +0200
commit4699591268012128de457f172963a51ae1c681d6 (patch)
tree6553606fd73ff8b11ea2e17e7d4296548db418a1 /src/fat_dir.c
parentea952b0cc9d7a732916fc37db13383a0ae31faf7 (diff)
TestDisk, Advanced, List will now always display files or a warning message
Diffstat (limited to 'src/fat_dir.c')
-rw-r--r--src/fat_dir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fat_dir.c b/src/fat_dir.c
index bdd7376..5619e62 100644
--- a/src/fat_dir.c
+++ b/src/fat_dir.c
@@ -439,7 +439,7 @@ static int fat1x_rootdir(disk_t *disk_car, const partition_t *partition, const d
}
-int dir_partition_fat_init(disk_t *disk_car, const partition_t *partition, dir_data_t *dir_data, const int verbose)
+dir_partition_t dir_partition_fat_init(disk_t *disk_car, const partition_t *partition, dir_data_t *dir_data, const int verbose)
{
static unsigned char *buffer;
static struct fat_dir_struct *ls;
@@ -448,7 +448,7 @@ int dir_partition_fat_init(disk_t *disk_car, const partition_t *partition, dir_d
{
log_error("Can't read FAT boot sector.\n");
free(buffer);
- return -1;
+ return DIR_PART_EIO;
}
set_secwest();
ls=(struct fat_dir_struct *)MALLOC(sizeof(*ls));
@@ -467,7 +467,7 @@ int dir_partition_fat_init(disk_t *disk_car, const partition_t *partition, dir_d
dir_data->local_dir=NULL;
dir_data->private_dir_data=ls;
dir_data->get_dir=fat_dir;
- return 0;
+ return DIR_PART_OK;
}
static void dir_partition_fat_close(dir_data_t *dir_data)