From 1cab37b39927032cc977248c1c536591b0840b15 Mon Sep 17 00:00:00 2001 From: tomascz Date: Thu, 4 Nov 2021 10:52:22 +0100 Subject: [PATCH] [#13] Minor source code improvements (Part 165: Minor improvements of dumping) --- Main/src/Image_Dump.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Main/src/Image_Dump.cpp b/Main/src/Image_Dump.cpp index 9e961731..c6fd1bb1 100644 --- a/Main/src/Image_Dump.cpp +++ b/Main/src/Image_Dump.cpp @@ -57,7 +57,7 @@ void __exportErroneousTracksToHtml__(CFile &fHtml) const{ // exports SourceTrackErrors to given HTML file Utils::WriteToFile(fHtml,_T("")); - Utils::WriteToFileFormatted( fHtml, _T("

Configuration

System:%s
Source:%s
via
%s
Target:%s
via
%s
Full track analysis:%s

"), dos->properties->name, Medium::GetDescription(dos->formatBoot.mediumType), source->GetPathName().GetLength()?source->GetPathName():_T("N/A"), Medium::GetDescription(mediumType), target->GetPathName().GetLength()?target->GetPathName():_T("N/A"), fullTrackAnalysis?_T("On"):_T("Off") ); + Utils::WriteToFileFormatted( fHtml, _T("

Configuration

") APP_ABBREVIATION _T(" version:") APP_VERSION _T("
System:%s
Source:%s
via
%s
Target:%s
via
%s
Full track analysis:%s

"), dos->properties->name, Medium::GetDescription(dos->formatBoot.mediumType), source->GetPathName().GetLength()?source->GetPathName():_T("N/A"), Medium::GetDescription(mediumType), target->GetPathName().GetLength()?target->GetPathName():_T("N/A"), fullTrackAnalysis?_T("On"):_T("Off") ); Utils::WriteToFile(fHtml,_T("

Overview

")); if (pOutErroneousTracks){ Utils::WriteToFile(fHtml,_T("")); @@ -167,7 +167,6 @@ const PBackgroundActionCancelable pAction=(PBackgroundActionCancelable)_pCancelableAction; TDumpParams &dp=*(TDumpParams *)pAction->GetParams(); pAction->SetProgressTarget( dp.cylinderZ+1-dp.cylinderA ); - dp.target->SetPathName( dp.targetFileName, FALSE ); // - dumping const TDumpParams::TSourceTrackErrors **ppSrcTrackErrors=&dp.pOutErroneousTracks; #pragma pack(1) @@ -955,6 +954,7 @@ terminateWithError: return LOG_ERROR(pAction->TerminateWithError(err)); : dos->sideMap; // otherwise adopt Sides defined by the DOS if ( err=d.dumpParams.target->SetMediumTypeAndGeometry( &targetGeometry, sideMap, dos->properties->firstSectorNumber ) ) goto error; + d.dumpParams.target->SetPathName( d.dumpParams.targetFileName, FALSE ); // . dumping {CBackgroundMultiActionCancelable bmac( d.realtimeThreadPriority ? THREAD_PRIORITY_TIME_CRITICAL : THREAD_PRIORITY_NORMAL ); bmac.AddAction( __dump_thread__, &d.dumpParams, _T("Dumping to target") );
StatusCount