https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b30670ba43ec5b8901ddbc98aff11f0f8be5d70d
commit b30670ba43ec5b8901ddbc98aff11f0f8be5d70d Author: Pierre Schweitzer <pie...@reactos.org> AuthorDate: Sat Nov 4 21:23:11 2017 +0100 [CDFS] Don't use uninit var. Fixes MSVC build (good boy :-)) --- drivers/filesystems/cdfs/create.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/filesystems/cdfs/create.c b/drivers/filesystems/cdfs/create.c index de53b1e74a..09a054bf1b 100644 --- a/drivers/filesystems/cdfs/create.c +++ b/drivers/filesystems/cdfs/create.c @@ -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);