minor build fixes.

This commit is contained in:
Ozkan Sezer 2019-07-31 00:05:28 +03:00
parent 97fefd0509
commit ceee7def84
2 changed files with 4 additions and 2 deletions

View file

@ -251,12 +251,12 @@ static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym)
HMODULE hmodule;
PFN retval = NULL;
char error[256];
if (DosLoadModule(&error, sizeof(error), fname, &hmodule) == NO_ERROR) {
if (DosLoadModule(error, sizeof(error), fname, &hmodule) == NO_ERROR) {
if (DosQueryProcAddr(hmodule, 0, sym, &retval) != NO_ERROR) {
DosFreeModule(hmodule);
}
}
return (void *) retval;
return (void *)retval;
}
#else