
Thanks again for reporting this!
Code: Select all
void CCapsImage::FindWeakBits()
{
PDISKTRACKINFO pti = di.pdt;
// nothing to do if samples are not available
if (pti->rawtrackcnt <= 0)
return;
// true if all the available revolutions should be returned
int allrev = (pti->trackcnt == pti->rawtrackcnt);
// use a single revolution if all the revolutions are returned at once, otherwise all the sampled revolutions
int maxrev = allrev ? 1 : pti->rawtrackcnt;
// process all revolutions
for (int rev = 0; rev < maxrev; rev++) {