From: Vadim Zeitlin Date: Sun, 24 Jan 2010 01:00:03 +0000 (+0000) Subject: Fix wxHTTPStream::Eof() to return true for empty HTTP resources. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/330ca4d434414ab78d490a632c2f198bebbe3f3b?ds=inline Fix wxHTTPStream::Eof() to return true for empty HTTP resources. Eof() never returned true when attempting to read an empty resource before. Closes #11596. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/http.cpp b/src/common/http.cpp index 82c5fc065b..873ac6db43 100644 --- a/src/common/http.cpp +++ b/src/common/http.cpp @@ -430,7 +430,7 @@ protected: size_t wxHTTPStream::OnSysRead(void *buffer, size_t bufsize) { - if (m_httpsize > 0 && m_read_bytes >= m_httpsize) + if (m_httpsize >= 0 && m_read_bytes >= m_httpsize) { m_lasterror = wxSTREAM_EOF; return 0;