← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2884: fix bug 931560, hashing zero-byte files

 

------------------------------------------------------------
revno: 2884
committer: cologic <ne5@xxxxxxxxxxx>
branch nick: dcplusplus
timestamp: Wed 2012-03-21 02:04:32 -0400
message:
  fix bug 931560, hashing zero-byte files
modified:
  changelog.txt
  dcpp/FileReader.cpp


--
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 'changelog.txt'
--- changelog.txt	2012-03-18 15:21:56 +0000
+++ changelog.txt	2012-03-21 06:04:32 +0000
@@ -26,6 +26,7 @@
 * Update boost to version 1.49
 * [L#947895] Move the "follow redirect" command to inline chat links (poy)
 * Format chat links (poy)
+* [L#931560] Correctly hash empty files when using asynchronous file reading (cologic)
 
 -- 0.791 2012-01-14 --
 * Update translations

=== modified file 'dcpp/FileReader.cpp'
--- dcpp/FileReader.cpp	2012-01-20 22:57:52 +0000
+++ dcpp/FileReader.cpp	2012-03-21 06:04:32 +0000
@@ -140,6 +140,8 @@
 			dcdebug("First overlapped read failed: %s\n", Util::translateError(::GetLastError()).c_str());
 			return READ_FAILED;
 		}
+
+		return 0;
 	}
 
 	// Finish the read and see how it went