mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-24 12:51:05 +00:00
dynapi: cast GetProcAddress() result to void*
This commit is contained in:
parent
c4a493de97
commit
06b305d232
|
@ -372,7 +372,7 @@ static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym)
|
||||||
HMODULE lib = LoadLibraryA(fname);
|
HMODULE lib = LoadLibraryA(fname);
|
||||||
void *retval = NULL;
|
void *retval = NULL;
|
||||||
if (lib) {
|
if (lib) {
|
||||||
retval = GetProcAddress(lib, sym);
|
retval = (void *) GetProcAddress(lib, sym);
|
||||||
if (retval == NULL) {
|
if (retval == NULL) {
|
||||||
FreeLibrary(lib);
|
FreeLibrary(lib);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue