mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[CDFS] Don't use uninit var. Fixes MSVC build (good boy :-))
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user