[CDFS] Don't use uninit var. Fixes MSVC build (good boy :-))

This commit is contained in:
Pierre Schweitzer 2017-11-04 21:23:11 +01:00
parent 06f9e1220f
commit b30670ba43
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View 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);