Ticket #4654: patchfile.patch

File patchfile.patch, 532 bytes (added by la06@…, 12 years ago)
  • detail/restrict_impl.hpp

     
    191191        }
    192192        if (next < beg_ || (end_ != -1 && next >= end_))
    193193            boost::throw_exception(bad_seek());
    194         pos_ = this->component().seek(dev, next, BOOST_IOS::cur);
     194        pos_ = this->component().seek(dev, next - pos_, BOOST_IOS::cur);
    195195        return offset_to_position(pos_ - beg_);
    196196    }
    197197