From d1e1cd6dab926a45d4bc1f157407693e1a79dbbe Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Mon, 2 Aug 2021 18:58:28 +0200 Subject: [PATCH] fix copy/paste mistake --- src/directinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/directinput.c b/src/directinput.c index 5102ad1..a949a2d 100644 --- a/src/directinput.c +++ b/src/directinput.c @@ -181,7 +181,7 @@ HRESULT WINAPI fake_DirectInputCreateA( real_DirectInputCreateA = (DIRECTINPUTCREATEAPROC)GetProcAddress(GetModuleHandle("dinput.dll"), "DirectInputCreateA"); - if (real_DirectInputCreateA == fake_DirectInputCreateW) + if (real_DirectInputCreateA == fake_DirectInputCreateA) { real_DirectInputCreateA = (DIRECTINPUTCREATEAPROC)GetProcAddress(LoadLibraryA("system32\\dinput.dll"), "DirectInputCreateA");