[MOUNTMGR] Volumes with NO_DRIVE_LETTER attribute should not be mounted, not the...
authorVictor Perevertkin <victor.perevertkin@reactos.org>
Thu, 12 Nov 2020 16:19:27 +0000 (19:19 +0300)
committerVictor Perevertkin <victor.perevertkin@reactos.org>
Thu, 12 Nov 2020 16:19:27 +0000 (19:19 +0300)
drivers/storage/mountmgr/mountmgr.c

index 9ec66ed..e733d32 100644 (file)
@@ -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;
             }