mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-02-26 05:29:23 +00:00
Fixed multi-zip regression (numTracks was getting zeroed). (Fixes #824)
This commit is contained in:
parent
039ad8a547
commit
bcd8fcc726
@ -81,7 +81,7 @@ ImageError_e ImageOpen( const std::string & pszImageFilename,
|
|||||||
if (!bExpectFloppy)
|
if (!bExpectFloppy)
|
||||||
return eIMAGE_ERROR_UNSUPPORTED;
|
return eIMAGE_ERROR_UNSUPPORTED;
|
||||||
|
|
||||||
pImageInfo->uNumTracks = sg_DiskImageHelper.GetNumTracksInImage(pImageInfo->pImageType);
|
_ASSERT(pImageInfo->uNumTracks);
|
||||||
|
|
||||||
*pWriteProtected = pImageInfo->bWriteProtected;
|
*pWriteProtected = pImageInfo->bWriteProtected;
|
||||||
|
|
||||||
|
@ -1891,6 +1891,7 @@ void CImageHelperBase::SetImageInfo(ImageInfo* pImageInfo, FileType_e fileType,
|
|||||||
pImageInfo->uOffset = dwOffset;
|
pImageInfo->uOffset = dwOffset;
|
||||||
pImageInfo->pImageType = pImageType;
|
pImageInfo->pImageType = pImageType;
|
||||||
pImageInfo->uImageSize = dwSize;
|
pImageInfo->uImageSize = dwSize;
|
||||||
|
pImageInfo->uNumTracks = pImageType->m_uNumTracksInImage;// Copy ImageType's m_uNumTracksInImage, which may get trashed by subsequent images in the zip (GH#824)
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------
|
//-------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user