From c81b7d7d536f55d8d0b6d53c6e581f6c047e2d2a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 18 Sep 2009 14:03:55 +0000 Subject: [PATCH] Correct wxStreamBuffer::Seek() return value. It returned the offset instead of the new position when seeking forward from current position in a "flushable" buffer. Closes #11205. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61958 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/stream.cpp b/src/common/stream.cpp index 241d1c07b2..1a03caa346 100644 --- a/src/common/stream.cpp +++ b/src/common/stream.cpp @@ -635,7 +635,7 @@ wxFileOffset wxStreamBuffer::Seek(wxFileOffset pos, wxSeekMode mode) size_t int_diff = wx_truncate_cast(size_t, diff); wxCHECK_MSG( (wxFileOffset)int_diff == diff, wxInvalidOffset, wxT("huge file not supported") ); SetIntPosition(int_diff); - return pos; + return diff; } case wxFromEnd: -- 2.50.0