Commit a58dea0f authored by Sam Lantinga's avatar Sam Lantinga

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 )?

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40865
parent 64e0d725
...@@ -106,7 +106,7 @@ static int LoadARTSLibrary(void) ...@@ -106,7 +106,7 @@ static int LoadARTSLibrary(void)
retval = 0; retval = 0;
for ( i=0; i<SDL_TABLESIZE(arts_functions); ++i ) { for ( i=0; i<SDL_TABLESIZE(arts_functions); ++i ) {
*arts_functions[i].func = SDL_LoadFunction(arts_handle, arts_functions[i].name); *arts_functions[i].func = SDL_LoadFunction(arts_handle, arts_functions[i].name);
if ( ! arts_functions[i].func ) { if ( !*arts_functions[i].func ) {
retval = -1; retval = -1;
UnloadARTSLibrary(); UnloadARTSLibrary();
break; break;
......
...@@ -101,7 +101,7 @@ static int LoadESDLibrary(void) ...@@ -101,7 +101,7 @@ static int LoadESDLibrary(void)
retval = 0; retval = 0;
for ( i=0; i<SDL_TABLESIZE(esd_functions); ++i ) { for ( i=0; i<SDL_TABLESIZE(esd_functions); ++i ) {
*esd_functions[i].func = SDL_LoadFunction(esd_handle, esd_functions[i].name); *esd_functions[i].func = SDL_LoadFunction(esd_handle, esd_functions[i].name);
if ( ! esd_functions[i].func ) { if ( !*esd_functions[i].func ) {
retval = -1; retval = -1;
UnloadESDLibrary(); UnloadESDLibrary();
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment