| Summary: | more os2 bits: dynapi (and fix two bad patches) | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ozkan Sezer <sezeroz> |
| Component: | *don't know* | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | x86 | ||
| OS: | OS/2 | ||
| Attachments: |
patch for SDL_thread.h
patch for SDL_dynapi_procs.h patch #1 for SDL_dynapi.c patch #2 for SDL_dynapi.c patch for SDL_dynapi.h patch #1 for SDL_dynapi.c |
||
|
Description
Ozkan Sezer
2017-08-24 02:03:27 UTC
Created attachment 2879 [details]
patch for SDL_thread.h
Created attachment 2880 [details]
patch for SDL_dynapi_procs.h
Created attachment 2881 [details]
patch #1 for SDL_dynapi.c
Created attachment 2882 [details]
patch #2 for SDL_dynapi.c
Created attachment 2883 [details]
patch for SDL_dynapi.h
Created attachment 2884 [details]
patch #1 for SDL_dynapi.c
(correct patch this time. sigh..)
Attachment #2884 [details] already made it into revision control over on Bug #3765. The rest look reasonable. I'll get them in there soon. --ryan. (In reply to Ryan C. Gordon from comment #7) > > Attachment #2884 [details] already made it into revision control > over on Bug #3765. Well even that contained an inverted logic bug (see comment #6). Fix: diff --git a/src/dynapi/SDL_dynapi.c b/src/dynapi/SDL_dynapi.c --- a/src/dynapi/SDL_dynapi.c +++ b/src/dynapi/SDL_dynapi.c @@ -244,7 +244,7 @@ static SDL_INLINE void *get_sdlapi_entry 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); } } > The rest look reasonable. I'll get them in there soon. > > --ryan. Great, thanks! |