fix dinput hook
This commit is contained in:
parent
a52881eb72
commit
bb42bdacb7
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ HRESULT WINAPI fake_DirectInput8Create(HINSTANCE hinst, DWORD dwVersion, REFIID
|
||||||
dprintf("DirectInput8Create\n");
|
dprintf("DirectInput8Create\n");
|
||||||
|
|
||||||
real_DirectInput8Create =
|
real_DirectInput8Create =
|
||||||
(DIRECTINPUTCREATEAPROC)GetProcAddress(GetModuleHandle("dinput8.dll"), "DirectInput8Create");
|
(DIRECTINPUT8CREATEPROC)GetProcAddress(GetModuleHandle("dinput8.dll"), "DirectInput8Create");
|
||||||
|
|
||||||
if (!real_DirectInput8Create)
|
if (!real_DirectInput8Create)
|
||||||
return DIERR_GENERIC;
|
return DIERR_GENERIC;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue