Fix an hypthetic uninit var usage in MupCreate().
Dedicated to Chris.

CID 1322239

svn path=/trunk/; revision=68967
This commit is contained in:
Pierre Schweitzer 2015-09-03 21:19:05 +00:00
parent a8934e6e69
commit ae490fe18e

View file

@ -2214,12 +2214,9 @@ MupCreate(PDEVICE_OBJECT DeviceObject,
_SEH2_TRY
{
/* If DFS is enabled, check if that's for DFS and is so relay */
if (MupEnableDfs)
if (MupEnableDfs && (DeviceObject->DeviceType == FILE_DEVICE_DFS || DeviceObject->DeviceType == FILE_DEVICE_DFS_FILE_SYSTEM))
{
if (DeviceObject->DeviceType == FILE_DEVICE_DFS || DeviceObject->DeviceType == FILE_DEVICE_DFS_FILE_SYSTEM)
{
Status = DfsFsdCreate(DeviceObject, Irp);
}
Status = DfsFsdCreate(DeviceObject, Irp);
}
else
{