]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/stream.cpp
fixing osx_cocoa
[wxWidgets.git] / src / common / stream.cpp
index 241d1c07b25a4b2e8f9853bdebd17e13a3eb72f0..1a03caa34604cedf54b1fe45d8e7125af2a9c9fe 100644 (file)
@@ -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);
                 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:
             }
 
         case wxFromEnd: