Skip to content

Commit

Permalink
backport fix for bug #1833. (from 2.0 branch commit 7ead8213dfb0).
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Oct 6, 2018
1 parent 5a26dc2 commit 5e267aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions music.c
Expand Up @@ -622,6 +622,7 @@ Mix_Music *Mix_LoadMUSType_RW(SDL_RWops *rw, Mix_MusicType type, int freesrc)
int start = SDL_RWtell(rw);
if (SDL_RWread(rw, magic, 1, 4) != 4) {
Mix_SetError("Couldn't read from RWops");
SDL_free(music);
return MUS_NONE;
}
SDL_RWseek(rw, start, RW_SEEK_SET);
Expand Down

0 comments on commit 5e267aa

Please sign in to comment.