Skip to content

Commit deaf291

Browse files
committed
fix inappropriate warning of inaccessible ext. if there is no defined
1 parent 18bd576 commit deaf291

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

appinfo/fdisk.lsm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Begin3
22
Title: Free FDISK
3-
Version: 1.4.1
3+
Version: 1.4.2
44
Entered-date: 2025-01-18
55
Description: Fixed disk partition tool
66
Summary: Fixed disk partition tool to create, delete and view hard disk

doc/fdisk/CHANGES.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ Bug classification:
88
- LOW: Cosmetic bugs, like display issues etc.
99

1010

11+
Version 1.4.2 (2025-01-18)
12+
---------------------------
13+
Fixes:
14+
- LOW: When displaying or editing logical partitions, only complain about
15+
an unusable extended partition if there is any defined, not when there
16+
is no extended at all (introduced with 1.4.1).
17+
18+
1119
Version 1.4.1 (2025-01-18)
1220
---------------------------
1321
Fixes:

source/fdisk/cmd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ void Command_Line_Delete( void )
328328
if ( ( arg[1].value >= 1 ) && ( arg[1].value <= MAX_LOGICAL_DRIVES ) &&
329329
( ( part_num = Nth_Log_Part_Defined( pDrive, arg[1].value - 1 ) ) < MAX_LOGICAL_DRIVES ) ) {
330330

331-
if ( !pDrive->ext_usable ) {
331+
if ( pDrive->ptr_ext_part && !pDrive->ext_usable ) {
332332
/* NLS:No usable extended partition found. */
333333
con_print( svarlang_str( 8, 7 ) );
334334
exit( 9 );
@@ -350,7 +350,7 @@ void Command_Line_Delete( void )
350350
else if ( ( arg[1].value >= 5 ) && ( arg[1].value <= 28 ) &&
351351
( ( part_num = Nth_Log_Part_Defined( pDrive, arg[1].value - 5 ) ) < MAX_LOGICAL_DRIVES ) ) {
352352

353-
if ( !pDrive->ext_usable ) {
353+
if ( pDrive->ptr_ext_part && !pDrive->ext_usable ) {
354354
/* NLS:No usable extended partition found. */
355355
con_print( svarlang_str( 8, 7 ) );
356356
exit( 9 );

source/fdisk/main.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#define FD_NAME "Free FDISK"
55
#endif
66

7-
#define VERSION "1.4.1"
7+
#define VERSION "1.4.2"
88
#define COPYLEFT "1998 - 2025"
99

1010
#define SIZE_OF_IPL ( 512 - 4 * 16 - 2 - 6 )

source/fdisk/ui.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ void Interactive_User_Interface( void )
300300
}
301301

302302
if ( menu == CLDD ) {
303-
if ( !pDrive->ext_usable ) {
303+
if ( pDrive->ptr_ext_part && !pDrive->ext_usable ) {
304304
Warn_Incompatible_Ext();
305305
}
306306
else if ( pDrive->ptr_ext_part == NULL ) {
@@ -363,7 +363,7 @@ void Interactive_User_Interface( void )
363363
}
364364

365365
if ( menu == DLDD ) {
366-
if ( !pDrive->ext_usable ) {
366+
if ( pDrive->ptr_ext_part && !pDrive->ext_usable ) {
367367
Warn_Incompatible_Ext();
368368
}
369369
else if ( ( pDrive->num_of_log_drives == 0 ) ||

0 commit comments

Comments
 (0)