mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Swapped conditional arguments for standard SDL readability
This commit is contained in:
parent
30fe9a6799
commit
a38f127e88
@ -243,8 +243,8 @@ static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym)
|
|||||||
HMODULE hmodule;
|
HMODULE hmodule;
|
||||||
PFN retval = NULL;
|
PFN retval = NULL;
|
||||||
char error[256];
|
char error[256];
|
||||||
if (NO_ERROR == DosLoadModule(&error, sizeof(error), fname, &hmodule)) {
|
if (DosLoadModule(&error, sizeof(error), fname, &hmodule) == NO_ERROR) {
|
||||||
if (NO_ERROR != DosQueryProcAddr(hmodule, 0, sym, &retval)) {
|
if (DosQueryProcAddr(hmodule, 0, sym, &retval) != NO_ERROR) {
|
||||||
DosFreeModule(hmodule);
|
DosFreeModule(hmodule);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user