Skip to content

Commit 8e869b1

Browse files
committed
do not write back unusable extended partition
1 parent 65330b2 commit 8e869b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/fdisk/pdiskio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ int Write_Partition_Tables( void )
13791379

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

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

0 commit comments

Comments
 (0)