diff --git a/Main/src/CapsBase.cpp b/Main/src/CapsBase.cpp index d822d06d..00dc8500 100644 --- a/Main/src/CapsBase.cpp +++ b/Main/src/CapsBase.cpp @@ -636,9 +636,7 @@ bool CCapsBase::IsTrackScanned(TCylinder cyl,THead head) const{ // True <=> Track exists and has already been scanned, otherwise False EXCLUSIVELY_LOCK_THIS_IMAGE(); - return cylnSectors){ const auto &ris=pit->sectors[nSectorsToSkip++]; if (ris.id==chs.sectorId) diff --git a/Main/src/CapsBase.h b/Main/src/CapsBase.h index 92d6e94c..365dd348 100644 --- a/Main/src/CapsBase.h +++ b/Main/src/CapsBase.h @@ -186,6 +186,7 @@ virtual TStdWinError UploadFirmware(); virtual TStdWinError UploadTrack(TCylinder cyl,THead head,CTrackReader tr) const; void WarnOnAndCorrectExceedingCylinders(); + PInternalTrack GetInternalTrackSafe(TCylinder cyl,THead head) const; void DestroyAllTracks(); TStdWinError VerifyTrack(TCylinder cyl,THead head,const CTrackReaderWriter &trwWritten,bool showDiff,std::unique_ptr *ppOutReadTrack,const volatile bool &cancelled) const; TStdWinError DetermineMagneticReliabilityByWriting(Medium::TType floppyType,TCylinder cyl,THead head,const volatile bool &cancelled) const; diff --git a/Main/src/SCP.cpp b/Main/src/SCP.cpp index b9526a29..74d29c56 100644 --- a/Main/src/SCP.cpp +++ b/Main/src/SCP.cpp @@ -89,8 +89,8 @@ formatError: ::SetLastError(ERROR_BAD_FORMAT); return TRUE; } - CCapsBase::PInternalTrack CSCP::GetInternalTrackSafe(TCylinder cyl,THead head) const{ - return cyl