Sfoglia il codice sorgente

artsaudio: revert bad arts_init return code check from commit ce5da5d.

Ozkan Sezer 2 anni fa
parent
commit
6fc17b0e2b
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/audio/arts/SDL_artsaudio.c

+ 2 - 2
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) {
     if (LoadARTSLibrary() < 0) {
         return SDL_FALSE;
         return SDL_FALSE;
     } else {
     } else {
-        if (SDL_NAME(arts_init) () != NULL) {
+        if (SDL_NAME(arts_init) () != 0) {
             UnloadARTSLibrary();
             UnloadARTSLibrary();
             SDL_SetError("ARTS: arts_init failed (no audio server?)");
             SDL_SetError("ARTS: arts_init failed (no audio server?)");
             return SDL_FALSE;
             return SDL_FALSE;