Author: arty
Date: Sat Apr 5 18:22:02 2008
New Revision: 32877
URL:
http://svn.reactos.org/svn/reactos?rev=32877&view=rev
Log:
Fix resource initialization order in vfat too.
Modified:
trunk/reactos/drivers/filesystems/fastfat/fsctl.c
Modified: trunk/reactos/drivers/filesystems/fastfat/fsctl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/fsctl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/fsctl.c [iso-8859-1] Sat Apr 5 18:22:02
2008
@@ -506,6 +506,9 @@
DPRINT("FsDeviceObject %p\n", DeviceObject);
+ /* Initialize this resource early ... it's used in VfatCleanup */
+ ExInitializeResourceLite(&DeviceExt->DirResource);
+
DeviceExt->FATFileObject = IoCreateStreamFileObject(NULL,
DeviceExt->StorageDevice);
Fcb = vfatNewFCB(DeviceExt, &NameU);
if (Fcb == NULL)
@@ -542,7 +545,6 @@
Fcb);
DeviceExt->LastAvailableCluster = 2;
- ExInitializeResourceLite(&DeviceExt->DirResource);
ExInitializeResourceLite(&DeviceExt->FatResource);
InitializeListHead(&DeviceExt->FcbListHead);