Changeset 11002


Ignore:
Timestamp:
Jul 13, 2010, 3:02:22 AM (12 years ago)
Author:
charles
Message:

(trunk gtk) #3421 "crash when opening properties dialog on a magnet link w/o metainfo" -- fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/details.c

    r10986 r11002  
    788788        for( i=0; i<n; ++i ) {
    789789            const tr_stat * st = stats[i];
     790            const tr_info * inf = infos[i];
    790791            haveUnchecked += st->haveUnchecked;
    791792            haveValid += st->haveValid;
    792             verifiedPieces += st->haveValid / tr_torrentInfo(torrents[i])->pieceSize;
     793            verifiedPieces += inf->pieceSize ? st->haveValid / inf->pieceSize : 0;
    793794            sizeWhenDone += st->sizeWhenDone;
    794795            leftUntilDone += st->leftUntilDone;
Note: See TracChangeset for help on using the changeset viewer.