From 3aa59a650a1fc2ec4be84831ab437abdb4ed9844 Mon Sep 17 00:00:00 2001 From: kichik Date: Wed, 27 Jun 2007 13:03:22 +0000 Subject: [PATCH] cl still complained about about not all control paths returning a value git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5180 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/NSISdl/httpget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Contrib/NSISdl/httpget.cpp b/Contrib/NSISdl/httpget.cpp index 4586952c..8761e80f 100644 --- a/Contrib/NSISdl/httpget.cpp +++ b/Contrib/NSISdl/httpget.cpp @@ -487,11 +487,13 @@ __int64 JNL_HTTPGet::content_length() char *p=getheader("content-length:"); if (!p) return 0; __int64 cl = myatoi64(p); - if (cl >= 0) return cl; + if (cl > 0) return cl; // workaround for bug #1744091 // some buggy apache servers return negative values for sizes // over 2gb - fix it for them if (cl < 0) return (__int64)((unsigned int)(cl)); + + return 0; }