Mercurial > sdl-ios-xcode
comparison src/audio/esd/SDL_esdaudio.c @ 864:0c892e99b65b
Date: Sun, 29 Feb 2004 20:28:27 +0200
From: Martin_Storsj
Subject: Slight bug in ESD and aRts
When I experimented with the ALSA-patch, I found a slight bug in the
Load{ESD,ARTS}Library-functions. The check of whether a function pointer
was correctly loaded looks like this right now:
*esd_functions[i].func = SDL_LoadFunction(esd_handle,
esd_functions[i].name);
if ( ! esd_functions[i].func )
Isn't that supposed to be ( ! *esd_functions[i].func )?
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 02 Mar 2004 12:45:22 +0000 |
parents | b8d311d90021 |
children | c9b51268668f |
comparison
equal
deleted
inserted
replaced
863:a4853bc3b4f8 | 864:0c892e99b65b |
---|---|
99 if ( esd_handle ) { | 99 if ( esd_handle ) { |
100 esd_loaded = 1; | 100 esd_loaded = 1; |
101 retval = 0; | 101 retval = 0; |
102 for ( i=0; i<SDL_TABLESIZE(esd_functions); ++i ) { | 102 for ( i=0; i<SDL_TABLESIZE(esd_functions); ++i ) { |
103 *esd_functions[i].func = SDL_LoadFunction(esd_handle, esd_functions[i].name); | 103 *esd_functions[i].func = SDL_LoadFunction(esd_handle, esd_functions[i].name); |
104 if ( ! esd_functions[i].func ) { | 104 if ( !*esd_functions[i].func ) { |
105 retval = -1; | 105 retval = -1; |
106 UnloadESDLibrary(); | 106 UnloadESDLibrary(); |
107 break; | 107 break; |
108 } | 108 } |
109 } | 109 } |