[MOUNTMGR] Volumes with NO_DRIVE_LETTER attribute should not be mounted, not the opposite

This commit is contained in:
Victor Perevertkin 2020-11-12 19:19:27 +03:00
parent d6ef8f97e9
commit bbfc515eb3
No known key found for this signature in database
GPG key ID: C750B7222E9C7830

View 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;
}