From d9df755e7826d8d37815edccb40b7a634e86afa2 Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Thu, 24 Mar 2011 00:21:53 +0000 Subject: [PATCH] Fix value that is used before being initialised. This lead to a drive to not be considered as FAT32 despite it is (or vice-versa). Thanks to Damien Guibouret . git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1559 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/fatfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/fatfs.c b/kernel/fatfs.c index 514d545..66204a6 100644 --- a/kernel/fatfs.c +++ b/kernel/fatfs.c @@ -1725,11 +1725,11 @@ STATIC f_node_ptr sft_to_fnode(int fd) fnp->f_dir.dir_time = sftp->sft_time; fnp->f_dir.dir_date = sftp->sft_date; fnp->f_dir.dir_size = sftp->sft_size; + fnp->f_dpb = sftp->sft_dcb; setdstart(fnp->f_dpb, &fnp->f_dir, sftp->sft_stclust); fnp->f_diridx = sftp->sft_diridx; fnp->f_dirsector = sftp->sft_dirsector; - fnp->f_dpb = sftp->sft_dcb; fnp->f_offset = sftp->sft_posit; fnp->f_cluster = sftp->sft_cuclust; #ifdef WITHFAT32