From a38f127e8853c739ebfada502b9bd04848af39fd Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 27 Aug 2017 18:52:43 -0700 Subject: [PATCH] Swapped conditional arguments for standard SDL readability --- src/dynapi/SDL_dynapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dynapi/SDL_dynapi.c b/src/dynapi/SDL_dynapi.c index 4fab43d0c..13f0a8169 100644 --- a/src/dynapi/SDL_dynapi.c +++ b/src/dynapi/SDL_dynapi.c @@ -243,8 +243,8 @@ static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym) HMODULE hmodule; PFN retval = NULL; char error[256]; - if (NO_ERROR == DosLoadModule(&error, sizeof(error), fname, &hmodule)) { - if (NO_ERROR != DosQueryProcAddr(hmodule, 0, sym, &retval)) { + if (DosLoadModule(&error, sizeof(error), fname, &hmodule) == NO_ERROR) { + if (DosQueryProcAddr(hmodule, 0, sym, &retval) != NO_ERROR) { DosFreeModule(hmodule); } }