Browse Source

OS/2: fixed inverted logic bug (thanks, Ozkan!).

Ryan C. Gordon 7 years ago
parent
commit
8c39d1d0b5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/dynapi/SDL_dynapi.c

+ 1 - 1
src/dynapi/SDL_dynapi.c

@@ -244,7 +244,7 @@ static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym)
     PFN retval = NULL;
     char error[256];
     if (NO_ERROR == DosLoadModule(&error, sizeof(error), fname, &hmodule)) {
-        if (NO_ERROR == DosQueryProcAddr(hmodule, 0, sym, &retval)) {
+        if (NO_ERROR != DosQueryProcAddr(hmodule, 0, sym, &retval)) {
             DosFreeModule(hmodule);
         }
     }