Skip to content

Commit

Permalink
do not display logical drives via /info if ext part is inaccessible
Browse files Browse the repository at this point in the history
  • Loading branch information
boeckmann committed Jan 18, 2025
1 parent 5a24107 commit ccee882
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/fdisk/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,12 @@ void Display_CL_Partition_Table( void )
/* NLS:Largest continious free space for primary partition */
con_printf( svarlang_str( 9, 5 ), Max_Pri_Free_Space_In_MB() );

if ( !pDrive->ext_usable ) {
/* NLS:No usable extended partition found. */
con_print( svarlang_str( 8, 7 ) );
return;
}

/* Check to see if there are any drives to display */
if ( ( brief_partition_table[( flags.drive_number - 128 )][4] > 0 ) ||
( brief_partition_table[( flags.drive_number - 128 )][5] > 0 ) ) {
Expand Down

0 comments on commit ccee882

Please sign in to comment.