Skip to content

Commit

Permalink
do not write back unusable extended partition
Browse files Browse the repository at this point in the history
  • Loading branch information
boeckmann committed Jan 18, 2025
1 parent 65330b2 commit 8e869b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/fdisk/pdiskio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@ int Write_Partition_Tables( void )

/* Write the Extended Partition Table, if applicable. */

if ( pDrive->ptr_ext_part ) {
if ( pDrive->ptr_ext_part && pDrive->ext_usable ) {
for ( index = 0; index < MAX_LOGICAL_DRIVES; index++ ) {
/* If this logical drive was just created, clear its boot sector. */
if ( pDrive->log_drive_created[index] == TRUE ) {
Expand Down

0 comments on commit 8e869b1

Please sign in to comment.