Skip to content

Commit

Permalink
[#13] Minor source code improvements (Part 199: Minor improvements)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-nestorovic committed Aug 23, 2022
1 parent 50e320b commit 7f2eb26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Main/src/ImageRaw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
if (!savingToCurrentFile && !CreateImageForWriting(lpszPathName,fTmp))
return ERROR_GEN_FAILURE;
if (f.m_hFile!=CFile::hFileNull) // handle doesn't exist when creating new Image
f.Seek(0,CFile::begin);
f.SeekToBegin();
ap.SetProgressTarget( nCylinders*nHeads );
TPhysicalAddress chs;
chs.sectorId.lengthCode=sectorLengthCode;
Expand Down
2 changes: 1 addition & 1 deletion Main/src/Image_TrackRW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@
const auto &pe=GetNext(pos);
if (ti.tEnd<pe.tStart) // no further matches possible as this list is ordered ascending by Start
break;
if (pe.Contains(ti.tStart) || pe.Contains(ti.tEnd))
if (pe.Intersect(ti))
return true;
}
return false;
Expand Down

0 comments on commit 7f2eb26

Please sign in to comment.