From 8c39d1d0b5d9bb22764c1ee6bff139dc738d0a16 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 25 Aug 2017 12:27:18 -0400 Subject: [PATCH] OS/2: fixed inverted logic bug (thanks, Ozkan!). --- src/dynapi/SDL_dynapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dynapi/SDL_dynapi.c b/src/dynapi/SDL_dynapi.c index 866160b06..4fab43d0c 100644 --- a/src/dynapi/SDL_dynapi.c +++ b/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); } }