From 414ed1f9a7f0c216032cc0f769254f38c0d89ab6 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 18 Aug 2001 11:13:57 +0000 Subject: [PATCH] Fixed Ogg Vorbis support on Windows --- music_ogg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/music_ogg.c b/music_ogg.c index cd296d16..f7e90718 100644 --- a/music_ogg.c +++ b/music_ogg.c @@ -77,7 +77,7 @@ OGG_music *OGG_new(const char *file) return(NULL); } } else { - SDL_OutOfMemory(); + SDL_SetError("Out of memory"); } return(music); } @@ -133,7 +133,7 @@ static void OGG_getsome(OGG_music *music) music->len_available = music->cvt.len_cvt; music->snd_available = music->cvt.buf; } else { - SDL_OutOfMemory(); + SDL_SetError("Out of memory"); music->playing = 0; } }