Commit 0a8f9777a7d901a2d257e9ad24a145bec9ab24dc

Ozkan Sezer 2022-12-30T11:11:10

SDL_dynapi.c: LoadLibraryA() returns HMODULE.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/dynapi/SDL_dynapi.c b/src/dynapi/SDL_dynapi.c
index 919bbba..f45f1d3 100644
--- a/src/dynapi/SDL_dynapi.c
+++ b/src/dynapi/SDL_dynapi.c
@@ -361,7 +361,7 @@ SDL_DYNAPI_entry(Uint32 apiver, void *table, Uint32 tablesize)
 #include <windows.h>
 static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym)
 {
-    HANDLE lib = LoadLibraryA(fname);
+    HMODULE lib = LoadLibraryA(fname);
     void *retval = NULL;
     if (lib) {
         retval = GetProcAddress(lib, sym);