From 8b6d9694bea693dbe9d3605d2094c2aef3cb34bb Mon Sep 17 00:00:00 2001
From: Steven Casper <[EMAIL REDACTED]>
Date: Sat, 24 Oct 2026 00:48:22 -0700
Subject: [PATCH] Use STDAPICALLTYPE instead of __stdcall
---
src/core/windows/gameinput/gameinput.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/core/windows/gameinput/gameinput.cpp b/src/core/windows/gameinput/gameinput.cpp
index d92ea750105b0..16483316c065a 100644
--- a/src/core/windows/gameinput/gameinput.cpp
+++ b/src/core/windows/gameinput/gameinput.cpp
@@ -606,7 +606,7 @@ static HRESULT GameInputCreateWithVersion(
RETURN_IF_FAILED(LoadGameInputDll(&g_gameInputDll));
}
- typedef HRESULT (__stdcall *GameInputInitializeFn)(
+ typedef HRESULT (STDAPICALLTYPE *GameInputInitializeFn)(
_In_ REFIID riid,
_COM_Outptr_ LPVOID* ppv);
@@ -622,7 +622,7 @@ static HRESULT GameInputCreateWithVersion(
// did not find it via above query, we must be running an old version of GameInput
// which only supports the v0 API. Don't attempt to use it for newer API versions.
- typedef HRESULT (*GameInputCreateFn)(
+ typedef HRESULT (STDAPICALLTYPE *GameInputCreateFn)(
_COM_Outptr_ LPVOID* ppv);
GameInputCreateFn gameInputCreate = nullptr;