aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-02-29 19:33:30 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-02-29 19:33:30 +0800
commit9f0b13d2450440eb4fdb8944f749448471d98c17 (patch)
tree2e3eebae3784fac97f25446a9dabf13801e74c00 /embed/mozilla
parent1419787b3ca3874501d0530d81c8c714a2e26547 (diff)
downloadgsoc2013-epiphany-9f0b13d2450440eb4fdb8944f749448471d98c17.tar
gsoc2013-epiphany-9f0b13d2450440eb4fdb8944f749448471d98c17.tar.gz
gsoc2013-epiphany-9f0b13d2450440eb4fdb8944f749448471d98c17.tar.bz2
gsoc2013-epiphany-9f0b13d2450440eb4fdb8944f749448471d98c17.tar.lz
gsoc2013-epiphany-9f0b13d2450440eb4fdb8944f749448471d98c17.tar.xz
gsoc2013-epiphany-9f0b13d2450440eb4fdb8944f749448471d98c17.tar.zst
gsoc2013-epiphany-9f0b13d2450440eb4fdb8944f749448471d98c17.zip
Fix max size logic, thanks to chpe.
2004-02-29 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/MozDownload.cpp: Fix max size logic, thanks to chpe.
Diffstat (limited to 'embed/mozilla')
-rw-r--r--embed/mozilla/MozDownload.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/embed/mozilla/MozDownload.cpp b/embed/mozilla/MozDownload.cpp
index b3cc63ec8..c59d72b33 100644
--- a/embed/mozilla/MozDownload.cpp
+++ b/embed/mozilla/MozDownload.cpp
@@ -349,8 +349,8 @@ MozDownload::OnProgressChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest
PRInt32 aCurTotalProgress, PRInt32 aMaxTotalProgress)
{
if (mMaxSize >= 0 &&
- ((aMaxTotalProgress > 0 && mMaxSize > aMaxTotalProgress) ||
- mMaxSize > aCurTotalProgress))
+ ((aMaxTotalProgress > 0 && mMaxSize < aMaxTotalProgress) ||
+ mMaxSize < aCurTotalProgress))
{
Cancel ();
}