X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d15e514e8464eda142ae5cbaada3e2fa37afe8a9..31f125ed00f3391ba78371c7aa0b4919427050d8:/src/common/http.cpp?ds=inline 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(); }