Skip to content

Commit

Permalink
fix inappropriate warning of inaccessible ext. if there is no defined
Browse files Browse the repository at this point in the history
  • Loading branch information
boeckmann committed Jan 18, 2025
1 parent 18bd576 commit deaf291
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion appinfo/fdisk.lsm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Begin3
Title: Free FDISK
Version: 1.4.1
Version: 1.4.2
Entered-date: 2025-01-18
Description: Fixed disk partition tool
Summary: Fixed disk partition tool to create, delete and view hard disk
Expand Down
8 changes: 8 additions & 0 deletions doc/fdisk/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ Bug classification:
- LOW: Cosmetic bugs, like display issues etc.


Version 1.4.2 (2025-01-18)
---------------------------
Fixes:
- LOW: When displaying or editing logical partitions, only complain about
an unusable extended partition if there is any defined, not when there
is no extended at all (introduced with 1.4.1).


Version 1.4.1 (2025-01-18)
---------------------------
Fixes:
Expand Down
4 changes: 2 additions & 2 deletions source/fdisk/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ void Command_Line_Delete( void )
if ( ( arg[1].value >= 1 ) && ( arg[1].value <= MAX_LOGICAL_DRIVES ) &&
( ( part_num = Nth_Log_Part_Defined( pDrive, arg[1].value - 1 ) ) < MAX_LOGICAL_DRIVES ) ) {

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

if ( !pDrive->ext_usable ) {
if ( pDrive->ptr_ext_part && !pDrive->ext_usable ) {
/* NLS:No usable extended partition found. */
con_print( svarlang_str( 8, 7 ) );
exit( 9 );
Expand Down
2 changes: 1 addition & 1 deletion source/fdisk/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define FD_NAME "Free FDISK"
#endif

#define VERSION "1.4.1"
#define VERSION "1.4.2"
#define COPYLEFT "1998 - 2025"

#define SIZE_OF_IPL ( 512 - 4 * 16 - 2 - 6 )
Expand Down
4 changes: 2 additions & 2 deletions source/fdisk/ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ void Interactive_User_Interface( void )
}

if ( menu == CLDD ) {
if ( !pDrive->ext_usable ) {
if ( pDrive->ptr_ext_part && !pDrive->ext_usable ) {
Warn_Incompatible_Ext();
}
else if ( pDrive->ptr_ext_part == NULL ) {
Expand Down Expand Up @@ -363,7 +363,7 @@ void Interactive_User_Interface( void )
}

if ( menu == DLDD ) {
if ( !pDrive->ext_usable ) {
if ( pDrive->ptr_ext_part && !pDrive->ext_usable ) {
Warn_Incompatible_Ext();
}
else if ( ( pDrive->num_of_log_drives == 0 ) ||
Expand Down

0 comments on commit deaf291

Please sign in to comment.