X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/995612e2abc1131458863ed1d3e55206df7c33de..ecef04c293db3e3ebcdb12062fdc40b9b35c8c3e:/src/common/imagpcx.cpp diff --git a/src/common/imagpcx.cpp b/src/common/imagpcx.cpp index 73bee7edf3..0ba41da2f2 100644 --- a/src/common/imagpcx.cpp +++ b/src/common/imagpcx.cpp @@ -222,7 +222,7 @@ int ReadPCX(wxImage *image, wxInputStream& stream) IMPLEMENT_DYNAMIC_CLASS(wxPCXHandler,wxImageHandler) #endif -bool wxPCXHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose ) +bool wxPCXHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose, int WXUNUSED(index) ) { int error; @@ -266,12 +266,9 @@ bool wxPCXHandler::SaveFile( wxImage *WXUNUSED(image), wxOutputStream& WXUNUSED( bool wxPCXHandler::DoCanRead( wxInputStream& stream ) { unsigned char c; - off_t pos; - pos = stream.TellI(); - stream.SeekI(0, wxFromStart); c = stream.GetC(); - stream.SeekI(pos, wxFromStart); + stream.SeekI(-1, wxFromCurrent); // not very safe, but this is all we can get from PCX header :-( return (c == 10);