comparison src/video/x11/SDL_x11dyn.c @ 1610:a1ee5944412b

SDL_X11_LoadSymbols() was reporting success when required symbols weren't found!
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 24 Mar 2006 03:49:37 +0000
parents 5115439d67b1
children 9f59d4c5aaea
comparison
equal deleted inserted replaced
1609:c3b5d17277d4 1610:a1ee5944412b
169 pXCreateIC = X11_GetSym("XCreateIC",&SDL_X11_HAVE_UTF8); 169 pXCreateIC = X11_GetSym("XCreateIC",&SDL_X11_HAVE_UTF8);
170 #endif 170 #endif
171 171
172 if (!SDL_X11_HAVE_BASEXLIB) { /* some required symbol didn't load. */ 172 if (!SDL_X11_HAVE_BASEXLIB) { /* some required symbol didn't load. */
173 SDL_X11_UnloadSymbols(); /* in case something got loaded... */ 173 SDL_X11_UnloadSymbols(); /* in case something got loaded... */
174 rc = 0;
174 } 175 }
175 } 176 }
176 #else 177 #else
177 #ifdef X_HAVE_UTF8_STRING 178 #ifdef X_HAVE_UTF8_STRING
178 pXCreateIC = XCreateIC; 179 pXCreateIC = XCreateIC;