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
This commit is contained in:
Vadim Zeitlin 2010-01-24 01:00:03 +00:00
parent 9677a8f017
commit 330ca4d434

View File

@ -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;