Skip to content

Commit

Permalink
OS/2: fixed inverted logic bug (thanks, Ozkan!).
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 25, 2017
1 parent 2213077 commit 8c39d1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dynapi/SDL_dynapi.c
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 8c39d1d

Please sign in to comment.