~ubuntu-branches/ubuntu/raring/unrar-nonfree/raring-proposed

« back to all changes in this revision

Viewing changes to rdwrfn.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Martin Meredith
  • Date: 2008-10-17 13:31:48 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (5.2.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: james.westby@ubuntu.com-20081017133148-rupr8l6mqdnys35t
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
      RetCode=SrcFile->Read(ReadAddr,ReadSize);
60
60
      FileHeader *hd=SubHead!=NULL ? SubHead:&SrcArc->NewLhd;
61
61
      if (hd->Flags & LHD_SPLIT_AFTER)
62
 
        PackedCRC=CRC(PackedCRC,ReadAddr,ReadSize);
 
62
        PackedCRC=CRC(PackedCRC,ReadAddr,RetCode);
63
63
    }
64
64
    CurUnpRead+=RetCode;
65
65
    TotalRead+=RetCode;
66
66
#ifndef NOVOLUME
67
 
    // these variable are not used below in NOVOLUME mode, so it is better
68
 
    // to exclude these commands to avoid compiler warnings
 
67
    // These variable are not used in NOVOLUME mode, so it is better
 
68
    // to exclude commands below to avoid compiler warnings.
69
69
    ReadAddr+=RetCode;
70
70
    Count-=RetCode;
71
71
#endif