Fix failure creating read-only view of rescued file systems (#680740)

The mount of lost file systems that were larger than a 32 bit integer
could hold (~2 GiB), or started after the first ~2 GiB of disk, would
fail.

Closes Bug #680740 - Gparted fails when mounting the read-only view of
                     lost filesystems
This commit is contained in:
Joan Lledó 2012-07-29 11:37:18 +02:00 committed by Curtis Gedak
parent eb74ed69b8
commit 14374c19f3
1 changed files with 3 additions and 3 deletions

View File

@ -153,9 +153,9 @@ void Dialog_Rescue_Data::on_view_clicked(int nPart)
{
Partition part=this->partitions[nPart];
int initOffset=this->sector_size*part.sector_start;
int numSectors=part.sector_end-part.sector_start+1;
int totalSize=this->sector_size*numSectors;
Byte_Value initOffset=this->sector_size*part.sector_start;
Sector numSectors=part.sector_end-part.sector_start+1;
Byte_Value totalSize=this->sector_size*numSectors;
this->check_overlaps(nPart);