https://git.reactos.org/?p=reactos.git;a=commitdiff;h=06fc9c43ed9363628ee1eb...
commit 06fc9c43ed9363628ee1eb43985f73690d0ab261 Author: Hervé Poussineau hpoussin@reactos.org AuthorDate: Sat Oct 30 08:44:26 2021 +0200 Commit: Hervé Poussineau hpoussin@reactos.org CommitDate: Sat Oct 30 08:47:38 2021 +0200
[PARTMGR] Mark partitions as removable if device is removable
CORE-17392 --- drivers/storage/partmgr/partmgr.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/drivers/storage/partmgr/partmgr.c b/drivers/storage/partmgr/partmgr.c index 36c09f26bea..c606a46ead0 100644 --- a/drivers/storage/partmgr/partmgr.c +++ b/drivers/storage/partmgr/partmgr.c @@ -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