From 76e68771287f0e6d5497aab31ac054978ec7802e Mon Sep 17 00:00:00 2001 From: tomas-nestorovic Date: Tue, 15 Feb 2022 13:11:51 +0100 Subject: [PATCH] [#40] Track Map: General improvements and bugfixes (Part 26.2: Fixed) --- Main/src/ViewTrackMap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Main/src/ViewTrackMap.cpp b/Main/src/ViewTrackMap.cpp index 56f20e5a..d991baf2 100644 --- a/Main/src/ViewTrackMap.cpp +++ b/Main/src/ViewTrackMap.cpp @@ -606,7 +606,7 @@ case TCursorPos::TRACK: // clicked on a Track mnu.EnableMenuItem( ID_TRACK, MF_BYCOMMAND|MF_ENABLED ); - if (IMAGE->WriteTrack(0,0,CImage::CTrackReaderWriter::Invalid)!=ERROR_NOT_SUPPORTED) // determining existence of low-level information by an attempt of writing + if (IMAGE->ReadTrack( chs.cylinder, chs.head )) // CANNOT alternatively call WriteTrack with Invalid data for some containers (e.g. *.IPF) don't allow for writing! mnu.EnableMenuItem( ID_HEAD, MF_BYCOMMAND|MF_ENABLED ); break; default: