From bb42bdacb72eb528861aeea0e4cd8c8506160ce8 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Sun, 2 May 2021 16:21:26 +0200 Subject: [PATCH] fix dinput hook --- src/directinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/directinput.c b/src/directinput.c index 12d6f09..683fa0d 100644 --- a/src/directinput.c +++ b/src/directinput.c @@ -94,7 +94,7 @@ HRESULT WINAPI fake_DirectInput8Create(HINSTANCE hinst, DWORD dwVersion, REFIID dprintf("DirectInput8Create\n"); real_DirectInput8Create = - (DIRECTINPUTCREATEAPROC)GetProcAddress(GetModuleHandle("dinput8.dll"), "DirectInput8Create"); + (DIRECTINPUT8CREATEPROC)GetProcAddress(GetModuleHandle("dinput8.dll"), "DirectInput8Create"); if (!real_DirectInput8Create) return DIERR_GENERIC;