Commit 06b305d232cd4eb83bb607d2e729919d4874ac36

Ozkan Sezer 2023-02-03T17:40:40

dynapi: cast GetProcAddress() result to void*

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 cd900ce..eac122a 100644
--- a/src/dynapi/SDL_dynapi.c
+++ b/src/dynapi/SDL_dynapi.c
@@ -372,7 +372,7 @@ static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym)
     HMODULE lib = LoadLibraryA(fname);
     void *retval = NULL;
     if (lib) {
-        retval = GetProcAddress(lib, sym);
+        retval = (void *) GetProcAddress(lib, sym);
         if (retval == NULL) {
             FreeLibrary(lib);
         }