From cfae9728fdae6921cdbb558092a9a76cf26211da Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 25 Dec 2009 03:00:24 +0100 Subject: Fixing bug in SeekFrom; this is actually from the end of the file... --- src/plugin-luaiup.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/plugin-luaiup.cc b/src/plugin-luaiup.cc index c7cf128..4b2322d 100644 --- a/src/plugin-luaiup.cc +++ b/src/plugin-luaiup.cc @@ -37,7 +37,7 @@ class imBinFileHandle : public imBinFileBase { virtual int HasError() const { return 0; } virtual void SeekTo(unsigned long pOffset) { h->seek(pOffset, SEEK_SET); } virtual void SeekOffset(long pOffset) { h->seek(pOffset, SEEK_CUR); } - virtual void SeekFrom(long pOffset) { h->seek(pOffset, SEEK_SET); } + virtual void SeekFrom(long pOffset) { h->seek(pOffset, SEEK_END); } virtual unsigned long Tell() const { return h->tell(); } virtual int EndOfFile() const { return h->tell() == h->GetSize(); } protected: -- cgit v1.2.3