bool wxICOHandler::LoadFile(wxImage *image, wxInputStream& stream,
bool verbose, int index)
{
- if (stream.SeekI(0) == wxInvalidOffset)
+ if ( stream.IsSeekable() && stream.SeekI(0) == wxInvalidOffset )
{
return false;
}
{
// It's ok to modify the stream position in this function.
- if (stream.SeekI(0) == wxInvalidOffset)
+ if ( stream.IsSeekable() && stream.SeekI(0) == wxInvalidOffset )
{
return 0;
}
{
// It's ok to modify the stream position in this function.
- if ( stream->SeekI(0) == wxInvalidOffset)
+ if ( stream->IsSeekable() && stream->SeekI(0) == wxInvalidOffset )
{
return false;
}