X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d0e21da25f89fa7eb269aee5db8d656d2da9c7c..a05da1b6827f40c0beb97225e9861356343e196b:/src/common/imagpcx.cpp diff --git a/src/common/imagpcx.cpp b/src/common/imagpcx.cpp index 73bee7edf3..4f5ecbb328 100644 --- a/src/common/imagpcx.cpp +++ b/src/common/imagpcx.cpp @@ -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);