From b841a51945ec4486fa6466c878948d22143cb91c Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Wed, 4 Jun 2003 18:01:02 +0000 Subject: [PATCH] =?UTF-8?q?-=20Fixed=20a=20wrong=20call=20to=20OffsetToClu?= =?UTF-8?q?ster=20in=20VfatSetAllocationSizeInformation=20(Thanks=20to=20M?= =?UTF-8?q?arc=20Sch=EF=BF=BDtz).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=4836 --- reactos/drivers/fs/vfat/finfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/drivers/fs/vfat/finfo.c b/reactos/drivers/fs/vfat/finfo.c index da1d3dd7c66..46f7db43ca2 100644 --- a/reactos/drivers/fs/vfat/finfo.c +++ b/reactos/drivers/fs/vfat/finfo.c @@ -1,4 +1,4 @@ -/* $Id: finfo.c,v 1.28 2003/05/11 09:51:26 hbirr Exp $ +/* $Id: finfo.c,v 1.29 2003/06/04 18:01:02 hbirr Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -503,7 +503,7 @@ VfatSetAllocationSizeInformation(PFILE_OBJECT FileObject, UpdateFileSize(FileObject, Fcb, NewSize, ClusterSize); if (NewSize > 0) { - Status = OffsetToCluster(DeviceExt, Cluster, + Status = OffsetToCluster(DeviceExt, FirstCluster, ROUND_DOWN(NewSize - 1, ClusterSize), &Cluster, FALSE);