Author: pschweitzer
Date: Sun Jan 25 02:29:42 2009
New Revision: 39076
URL:
http://svn.reactos.org/svn/reactos?rev=39076&view=rev
Log:
Fixed a wrong behaviour
Modified:
trunk/reactos/drivers/filesystems/fastfat_new/fsctl.c
Modified: trunk/reactos/drivers/filesystems/fastfat_new/fsctl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat_new/fsctl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat_new/fsctl.c [iso-8859-1] Sun Jan 25 02:29:42
2009
@@ -99,7 +99,7 @@
sizeof(DISK_GEOMETRY),
TRUE);
- if (!NT_SUCCESS(Status)) return Status;
+ if (!NT_SUCCESS(Status)) goto FatMountVolumeCleanup;
VolumeDevice->DeviceObject.SectorSize = DiskGeometry.BytesPerSector;
@@ -111,8 +111,7 @@
/* Initialize VCB for this volume */
Status = FatInitializeVcb(&VolumeDevice->Vcb, TargetDeviceObject, Vpb);
- if (!NT_SUCCESS(Status))
- goto FatMountVolumeCleanup;
+ if (!NT_SUCCESS(Status)) goto FatMountVolumeCleanup;
/* Return success */
return STATUS_SUCCESS;