Skip to content
Permalink
Browse files

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

  • Loading branch information
icculus committed Aug 25, 2017
1 parent 2213077 commit 8c39d1d0b5d9bb22764c1ee6bff139dc738d0a16
Showing with 1 addition and 1 deletion.
  1. +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);
}
}

0 comments on commit 8c39d1d

Please sign in to comment.