← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2153: Fix the file corruption fix

 

------------------------------------------------------------
revno: 2153
fixes bug(s): https://launchpad.net/bugs/550300
author: bigmuscle
committer: eMTee <emtee11@xxxxxxxxx>
branch nick: dcplusplus
timestamp: Sun 2010-05-23 22:06:42 +0200
message:
  Fix the file corruption fix
modified:
  dcpp/Transfer.h


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'dcpp/Transfer.h'
--- dcpp/Transfer.h	2010-04-23 18:40:39 +0000
+++ dcpp/Transfer.h	2010-05-23 20:06:42 +0000
@@ -50,7 +50,7 @@
 
 	int64_t getStartPos() const { return getSegment().getStart(); }
 
-	void resetPos() { pos = getStartPos(); }
+	void resetPos() { pos = 0; }
 
 	void addPos(int64_t aBytes, int64_t aActual) { pos += aBytes; actual+= aActual; }