mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
OS/2: fixed inverted logic bug (thanks, Ozkan!).
This commit is contained in:
parent
2213077a95
commit
8c39d1d0b5
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user