engine/src/HttpClient.cpp
changeset 82 d87e984bd8b8
parent 81 27f6f5827e5d
child 93 c2f1ea38ec70
--- a/engine/src/HttpClient.cpp	Sun Apr 04 18:52:11 2010 +0100
+++ b/engine/src/HttpClient.cpp	Sun Apr 04 21:47:56 2010 +0100
@@ -160,7 +160,7 @@
 	if (iResumeEnabled && iPodcastModel.FsSession().Entry(iCurrentFileName, entry) == KErrNone) {
 		DP1("Found file, with size=%d", entry.iSize);
 		// file exists, so we should probably resume
-		rangeText.Format(_L8("bytes=%d-"), entry.iSize-KByteOverlap);
+		rangeText.Format(_L8("bytes=%d-"), (entry.iSize-KByteOverlap > 0 ? entry.iSize-KByteOverlap : 0));
 		iHandler->SetSaveFileName(iCurrentFileName, ETrue);
 	} else {
 		// otherwise just make sure the directory exists