Skip to content

Commit

Permalink
Swapped conditional arguments for standard SDL readability
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 28, 2017
1 parent 30fe9a6 commit a38f127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dynapi/SDL_dynapi.c
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit a38f127

Please sign in to comment.