https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a53992180dc4e378d7e9b…
commit a53992180dc4e378d7e9b219bc6d854b75edfd6a
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sat Oct 19 16:56:21 2019 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sat Oct 19 16:59:58 2019 +0200
[MOUNTMGR] Fix enumerating drive letter for creating new mountpoint
This is purely a copypasta error fix, which was causing MountMgrNextDriveLetterWorker
to fail as no drive letters were enumerated previously.
With that set of patches, MountMgr now properly assigns drive letters to
new devices!
---
drivers/filters/mountmgr/device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/filters/mountmgr/device.c b/drivers/filters/mountmgr/device.c
index ec9a04d063d..9b762890ea6 100644
--- a/drivers/filters/mountmgr/device.c
+++ b/drivers/filters/mountmgr/device.c
@@ -610,7 +610,7 @@ MountMgrNextDriveLetterWorker(IN PDEVICE_EXTENSION DeviceExtension,
DriveLetterInfo->CurrentDriveLetter <= L'Z';
DriveLetterInfo->CurrentDriveLetter++)
{
- NameBuffer[LETTER_POSITION] = DeviceInformation->SuggestedDriveLetter;
+ NameBuffer[LETTER_POSITION] = DriveLetterInfo->CurrentDriveLetter;
Status = MountMgrCreatePointWorker(DeviceExtension, &SymbolicName,
&TargetDeviceName);
if (NT_SUCCESS(Status))