More FAT32 fixes

svn path=/trunk/; revision=1609
This commit is contained in:
David Welch 2001-02-06 20:17:35 +00:00
parent c93d52a405
commit c87bd2d365

View file

@ -1,5 +1,5 @@
/*
* $Id: fat.c,v 1.17 2001/02/06 00:41:19 dwelch Exp $
* $Id: fat.c,v 1.18 2001/02/06 20:17:35 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -62,7 +62,7 @@ Fat32GetNextCluster (PDEVICE_EXTENSION DeviceExt,
}
}
CurrentCluster = *((PUSHORT)BaseAddress + (FATOffset % PAGESIZE));
CurrentCluster = *(PULONG)(BaseAddress + (FATOffset % PAGESIZE));
if (CurrentCluster >= 0xffffff8 && CurrentCluster <= 0xfffffff)
CurrentCluster = 0xffffffff;
CcReleaseCacheSegment(DeviceExt->StorageBcb, CacheSeg, TRUE);