Windows Driver: Don't interact with the volume's filesystem if mount manager integration is disabled

This commit is contained in:
Mounir IDRASSI 2018-12-19 12:26:55 +01:00
parent 800f081f1c
commit 3290ef4f75
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F
1 changed files with 1 additions and 1 deletions

View File

@ -3794,7 +3794,7 @@ NTSTATUS MountDevice (PDEVICE_OBJECT DeviceObject, MOUNT_STRUCT *mount)
mount->FilesystemDirty = FALSE;
if (NT_SUCCESS (TCOpenFsVolume (NewExtension, &volumeHandle, &volumeFileObject)))
if (mount->bMountManager && NT_SUCCESS (TCOpenFsVolume (NewExtension, &volumeHandle, &volumeFileObject)))
{
__try
{