Skip to content
Permalink
Browse files

Swapped conditional arguments for standard SDL readability

  • Loading branch information
slouken committed Aug 28, 2017
1 parent 30fe9a6 commit a38f127e8853c739ebfada502b9bd04848af39fd
Showing with 2 additions and 2 deletions.
  1. +2 −2 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);
}
}

0 comments on commit a38f127

Please sign in to comment.