From 23ee422c5d971ddaaf2ac664cb52fafb2cc561df Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 30 Dec 2022 11:11:10 +0300
Subject: [PATCH] SDL_dynapi.c: LoadLibraryA() returns HMODULE.
---
src/dynapi/SDL_dynapi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/dynapi/SDL_dynapi.c b/src/dynapi/SDL_dynapi.c
index 1758547..3bcd8b0 100644
--- a/src/dynapi/SDL_dynapi.c
+++ b/src/dynapi/SDL_dynapi.c
@@ -27,7 +27,7 @@
#define SDL_DYNAMIC_API_ENVVAR "SDL_DYNAMIC_API"
-/* sdl2-compat: this types were removed from SDL3, but we need them for SDL2 APIs exported here. */
+/* sdl2-compat: these types were removed from SDL3, but we need them for SDL2 APIs exported here. */
typedef Sint64 SDL_GestureID;
typedef SDL_Gamepad SDL_GameController; /* since they're opaque types, for simplicity we just typedef it here and use the old types in sdl3_syms.h */
typedef SDL_GamepadAxis SDL_GameControllerAxis;
@@ -345,7 +345,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);