mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[CDFS] Don't use uninit var. Fixes MSVC build (good boy :-))
This commit is contained in:
parent
06f9e1220f
commit
b30670ba43
1 changed files with 1 additions and 2 deletions
|
@ -268,6 +268,7 @@ CdfsCreate(
|
||||||
ASSERT(IrpContext);
|
ASSERT(IrpContext);
|
||||||
|
|
||||||
DeviceObject = IrpContext->DeviceObject;
|
DeviceObject = IrpContext->DeviceObject;
|
||||||
|
DeviceExt = DeviceObject->DeviceExtension;
|
||||||
if (DeviceObject == CdfsGlobalData->CdFsDeviceObject || DeviceObject == CdfsGlobalData->HddFsDeviceObject)
|
if (DeviceObject == CdfsGlobalData->CdFsDeviceObject || DeviceObject == CdfsGlobalData->HddFsDeviceObject)
|
||||||
{
|
{
|
||||||
/* DeviceObject represents FileSystem instead of logical volume */
|
/* DeviceObject represents FileSystem instead of logical volume */
|
||||||
|
@ -277,8 +278,6 @@ CdfsCreate(
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
DeviceExt = DeviceObject->DeviceExtension;
|
|
||||||
|
|
||||||
KeEnterCriticalRegion();
|
KeEnterCriticalRegion();
|
||||||
ExAcquireResourceExclusiveLite(&DeviceExt->DirResource,
|
ExAcquireResourceExclusiveLite(&DeviceExt->DirResource,
|
||||||
TRUE);
|
TRUE);
|
||||||
|
|
Loading…
Reference in a new issue