--- a/engine/src/HttpClient.cpp Thu Mar 11 20:53:00 2010 +0100
+++ b/engine/src/HttpClient.cpp Tue Apr 27 19:26:48 2010 +0100
@@ -14,6 +14,7 @@
#include "HttpClient.h"
#include "connectionengine.h"
#include "settingsengine.h"
+#include "Podcatcher.pan"
const TInt KTempBufferSize = 100;
@@ -159,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
@@ -192,7 +193,7 @@
TBool CHttpClient::GetL(const TDesC& aUrl, const TDesC& aFileName, TBool aSilent) {
DP("CHttpClient::Get START");
DP2("Getting '%S' to '%S'", &aUrl, &aFileName);
- __ASSERT_DEBUG((iIsActive==EFalse), User::Panic(_L("Already active"), -2));
+ __ASSERT_DEBUG((iIsActive==EFalse), Panic(EPodcatcherPanicAlreadyActive));
iCurrentURL.Copy(aUrl);
TInt urlError = iUriParser.Parse(iCurrentURL);