]> git.saurik.com Git - wxWidgets.git/commit
Fix last count value after ReadAll() and WriteAll().
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 20 May 2013 15:26:22 +0000 (15:26 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 20 May 2013 15:26:22 +0000 (15:26 +0000)
commit1b495a94e632986d756f78b2dc2d643da351819e
tree4ae41059ca3465f29f94fea5ca995ed92728c7f2
parent691745ab412824d74d036930ad69accbe37d97b4
Fix last count value after ReadAll() and WriteAll().

This corrects the bugs introduced when applying the patch adding these
functions in r74034: we can't simply use m_lastcount directly in them because
it's also modified by each call to Read() and Write(), so do use the temporary
variable.

See #12056.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/stream.cpp