From 5483dcbd73c55798e0307a7b8350cde9444da945 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Wed, 29 Jun 2022 15:30:36 +0100 Subject: [PATCH] dll: FspMountSet_MountmgrDirectory: bug fix --- src/dll/mount.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dll/mount.c b/src/dll/mount.c index ff745365..682fd20b 100644 --- a/src/dll/mount.c +++ b/src/dll/mount.c @@ -141,6 +141,12 @@ static NTSTATUS FspMountSet_MountmgrDirectory(HANDLE VolumeHandle, PWSTR VolumeN { /* use MountManager from FSD and exit */ Result = FspFsctlUseMountmgr(VolumeHandle, MountPoint + 4); + if (!NT_SUCCESS(Result)) + goto exit; + + *PMountHandle = MountHandle; + + Result = STATUS_SUCCESS; goto exit; }