X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d15e514e8464eda142ae5cbaada3e2fa37afe8a9..a3b7db872925df2921f36637a84085ec04cf977a:/src/common/http.cpp diff --git a/src/common/http.cpp b/src/common/http.cpp index f70b6fe9da..556618aca5 100644 --- a/src/common/http.cpp +++ b/src/common/http.cpp @@ -477,7 +477,13 @@ public: size_t m_httpsize; unsigned long m_read_bytes; - wxHTTPStream(wxHTTP *http) : wxSocketInputStream(*http), m_http(http) {} + wxHTTPStream(wxHTTP *http) : wxSocketInputStream(*http) + { + m_http = http; + m_httpsize = 0; + m_read_bytes = 0; + } + size_t GetSize() const { return m_httpsize; } virtual ~wxHTTPStream(void) { m_http->Abort(); }