# HG changeset patch # User Sam Lantinga # Date 1139090504 0 # Node ID bc67bbf87818f40d83031612b98c54449dbcb396 # Parent 27ddb06a0bca7bc97c2b0be124f2a436b6a85e33 Seek back to start on error diff -r 27ddb06a0bca -r bc67bbf87818 src/video/SDL_bmp.c --- a/src/video/SDL_bmp.c Sat Feb 04 16:29:22 2006 +0000 +++ b/src/video/SDL_bmp.c Sat Feb 04 22:01:44 2006 +0000 @@ -318,6 +318,9 @@ } done: if ( was_error ) { + if ( src ) { + SDL_RWseek(src, fp_offset, SEEK_SET); + } if ( surface ) { SDL_FreeSurface(surface); }