From b7a0ef6bdf94b0a61ff969e5594db03c9ef342d7 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 10 Oct 2023 10:40:20 +0300 Subject: [PATCH] artsaudio: revert bad arts_init return code check from commit ce5da5d. --- src/audio/arts/SDL_artsaudio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/audio/arts/SDL_artsaudio.c b/src/audio/arts/SDL_artsaudio.c index ea4f3119b..f3aa94b15 100644 --- a/src/audio/arts/SDL_artsaudio.c +++ b/src/audio/arts/SDL_artsaudio.c @@ -300,12 +300,12 @@ static void ARTS_Deinitialize(void) } -static SDL_bool ARTS_Init(SDL_AudioDriverImpl * impl) +static SDL_bool ARTS_Init(SDL_AudioDriverImpl *impl) { if (LoadARTSLibrary() < 0) { return SDL_FALSE; } else { - if (SDL_NAME(arts_init) () != NULL) { + if (SDL_NAME(arts_init) () != 0) { UnloadARTSLibrary(); SDL_SetError("ARTS: arts_init failed (no audio server?)"); return SDL_FALSE;