mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 12:40:33 +00:00
Fixed crash while mounting a FAT32 partition.
svn path=/trunk/; revision=2066
This commit is contained in:
parent
5c2ae92c47
commit
f488ede562
1 changed files with 9 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: iface.c,v 1.55 2001/07/13 10:31:14 ekohl Exp $
|
/* $Id: iface.c,v 1.56 2001/07/17 07:48:06 ekohl Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -204,9 +204,14 @@ VfatMount (PDEVICE_OBJECT DeviceToMount)
|
||||||
DeviceToMount);
|
DeviceToMount);
|
||||||
DeviceExt->StreamStorageDevice = IoCreateStreamFileObject(NULL,
|
DeviceExt->StreamStorageDevice = IoCreateStreamFileObject(NULL,
|
||||||
DeviceExt->StorageDevice);
|
DeviceExt->StorageDevice);
|
||||||
Status = CcRosInitializeFileCache(DeviceExt->StreamStorageDevice,
|
if (DeviceExt->FatType == FAT16)
|
||||||
&DeviceExt->StorageBcb,
|
Status = CcRosInitializeFileCache(DeviceExt->StreamStorageDevice,
|
||||||
CACHEPAGESIZE(DeviceExt));
|
&DeviceExt->StorageBcb,
|
||||||
|
CACHEPAGESIZE(DeviceExt));
|
||||||
|
else
|
||||||
|
Status = CcRosInitializeFileCache(DeviceExt->StreamStorageDevice,
|
||||||
|
&DeviceExt->StorageBcb,
|
||||||
|
PAGESIZE);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
/* FIXME: delete device object */
|
/* FIXME: delete device object */
|
||||||
|
|
Loading…
Reference in a new issue