mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[MOUNTMGR] Simplify a bit the code in MountMgrQueryDosVolumePath(s) (#6990)
This commit is contained in:
parent
e72a9a78b0
commit
28c3533d11
1 changed files with 3 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue