SDL_dynapi.c: LoadLibraryA() returns HMODULE.

This commit is contained in:
Ozkan Sezer 2022-12-30 11:11:10 +03:00
parent 324c0b76a0
commit 929da2c28e
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ SDL_DYNAPI_entry(Uint32 apiver, void *table, Uint32 tablesize)
#include <windows.h> #include <windows.h>
static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym) static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym)
{ {
HANDLE lib = LoadLibraryA(fname); HMODULE lib = LoadLibraryA(fname);
void *retval = NULL; void *retval = NULL;
if (lib) { if (lib) {
retval = GetProcAddress(lib, sym); retval = GetProcAddress(lib, sym);