https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bbfc515eb3cf208d8637d…
commit bbfc515eb3cf208d8637d3631c1d833e3e0778d1
Author: Victor Perevertkin <victor.perevertkin(a)reactos.org>
AuthorDate: Thu Nov 12 19:19:27 2020 +0300
Commit: Victor Perevertkin <victor.perevertkin(a)reactos.org>
CommitDate: Thu Nov 12 19:19:27 2020 +0300
[MOUNTMGR] Volumes with NO_DRIVE_LETTER attribute should not be mounted, not the
opposite
---
drivers/storage/mountmgr/mountmgr.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/storage/mountmgr/mountmgr.c b/drivers/storage/mountmgr/mountmgr.c
index 9ec66ed7217..e733d322766 100644
--- a/drivers/storage/mountmgr/mountmgr.c
+++ b/drivers/storage/mountmgr/mountmgr.c
@@ -282,8 +282,7 @@ QueryDeviceInformation(IN PUNICODE_STRING SymbolicName,
Status = STATUS_SUCCESS;
}
/* Check if it has a drive letter */
- else if (!(GptAttributes.GptAttributes &
- GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER))
+ else if (GptAttributes.GptAttributes &
GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER)
{
*GptDriveLetter = FALSE;
}