[PARTMGR] Mark partitions as removable if device is removable

CORE-17392
This commit is contained in:
Hervé Poussineau 2021-10-30 08:44:26 +02:00
parent 3a323c3de0
commit 06fc9c43ed

View file

@ -269,6 +269,10 @@ PartMgrUpdatePartitionDevices(
continue;
}
// mark partition as removable if parent device is removable
if (FdoExtension->LowerDevice->Characteristics & FILE_REMOVABLE_MEDIA)
partitionDevice->Characteristics |= FILE_REMOVABLE_MEDIA;
totalPartitions++;
// insert the structure to the partition list