[CDFS] Don't use uninit var. Fixes MSVC build (good boy :-))
authorPierre Schweitzer <pierre@reactos.org>
Sat, 4 Nov 2017 20:23:11 +0000 (21:23 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 4 Nov 2017 20:23:11 +0000 (21:23 +0100)
drivers/filesystems/cdfs/create.c

index de53b1e..09a054b 100644 (file)
@@ -268,6 +268,7 @@ CdfsCreate(
     ASSERT(IrpContext);
 
     DeviceObject = IrpContext->DeviceObject;
+    DeviceExt = DeviceObject->DeviceExtension;
     if (DeviceObject == CdfsGlobalData->CdFsDeviceObject || DeviceObject == CdfsGlobalData->HddFsDeviceObject)
     {
         /* DeviceObject represents FileSystem instead of logical volume */
@@ -277,8 +278,6 @@ CdfsCreate(
         return STATUS_SUCCESS;
     }
 
-    DeviceExt = DeviceObject->DeviceExtension;
-
     KeEnterCriticalRegion();
     ExAcquireResourceExclusiveLite(&DeviceExt->DirResource,
         TRUE);