#include "wx/hashmap.h"
#include "wx/stream.h"
#include "wx/image.h"
+ #include "wx/palette.h"
#endif
#include <string.h>
if ( !stream.Read(buf, WXSIZEOF(buf)) )
return false;
- stream.SeekI(-(wxFileOffset)WXSIZEOF(buf), wxFromCurrent);
+ if (stream.SeekI(-(wxFileOffset)WXSIZEOF(buf), wxFromCurrent) == wxInvalidOffset)
+ return false;
return memcmp(buf, "/* XPM */", WXSIZEOF(buf)) == 0;
}