https://git.reactos.org/?p=reactos.git;a=commitdiff;h=28c3533d1113f5b7ea849d0f8d8f3c0480639837

commit 28c3533d1113f5b7ea849d0f8d8f3c0480639837
Author:     Hermès Bélusca-Maïto <hermes.belusca-ma...@reactos.org>
AuthorDate: Sun Jan 19 22:54:02 2025 +0100
Commit:     Hermès Bélusca-Maïto <hermes.belusca-ma...@reactos.org>
CommitDate: Tue Jan 21 19:16:00 2025 +0100

    [MOUNTMGR] Simplify a bit the code in MountMgrQueryDosVolumePath(s) (#6990)
---
 drivers/storage/mountmgr/device.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/storage/mountmgr/device.c 
b/drivers/storage/mountmgr/device.c
index 58a478115e9..fdf6af9435b 100644
--- a/drivers/storage/mountmgr/device.c
+++ b/drivers/storage/mountmgr/device.c
@@ -856,7 +856,7 @@ MountMgrQueryDosVolumePath(IN PDEVICE_EXTENSION 
DeviceExtension,
     }
 
     /* Construct string for query */
-    SymbolicName.Length = Target->DeviceNameLength;
+    SymbolicName.Length =
     SymbolicName.MaximumLength = Target->DeviceNameLength;
     SymbolicName.Buffer = Target->DeviceName;
 
@@ -1482,8 +1482,8 @@ MountMgrQueryDosVolumePaths(IN PDEVICE_EXTENSION 
DeviceExtension,
     }
 
     /* Construct string for query */
-    SymbolicName.Length = Target->DeviceNameLength;
-    SymbolicName.MaximumLength = Target->DeviceNameLength + 
sizeof(UNICODE_NULL);
+    SymbolicName.Length =
+    SymbolicName.MaximumLength = Target->DeviceNameLength;
     SymbolicName.Buffer = Target->DeviceName;
 
     /* Find device with our info */

Reply via email to