summaryrefslogtreecommitdiffstats
path: root/src/win32.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-02-25 12:34:37 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2012-02-25 12:34:37 +0100
commit2832afabc78c0f0807d67ca66366f962d39877c8 (patch)
tree619894e3ec3f8384ff25b783ff3881703a1caa59 /src/win32.c
parent70cdc4ed1b21de9a402b32cd668c520312a20264 (diff)
Improve default partition table selection
Diffstat (limited to 'src/win32.c')
-rw-r--r--src/win32.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/win32.c b/src/win32.c
index 845487b..0a1f4a5 100644
--- a/src/win32.c
+++ b/src/win32.c
@@ -53,6 +53,8 @@
#include "hdaccess.h"
#include "alignio.h"
+extern const arch_fnct_t arch_none;
+
static unsigned int file_win32_compute_sector_size(HANDLE handle);
static uint64_t filewin32_getfilesize(HANDLE handle, const char *device);
static const char *file_win32_description(disk_t *disk_car);
@@ -246,7 +248,7 @@ static uint64_t filewin32_setfilepointer(HANDLE handle, const char *device)
return disk_size;
}
-disk_t *file_test_availability_win32(const char *device, const int verbose, const arch_fnct_t *arch, int testdisk_mode)
+disk_t *file_test_availability_win32(const char *device, const int verbose, int testdisk_mode)
{
disk_t *disk_car=NULL;
HANDLE handle=INVALID_HANDLE_VALUE;
@@ -314,7 +316,7 @@ disk_t *file_test_availability_win32(const char *device, const int verbose, cons
struct info_file_win32_struct *data;
disk_car=(disk_t *)MALLOC(sizeof(*disk_car));
init_disk(disk_car);
- disk_car->arch=arch;
+ disk_car->arch=&arch_none;
disk_car->device=strdup(device);
data=(struct info_file_win32_struct *)MALLOC(sizeof(*data));
data->handle=handle;