Minor code edits

This commit is contained in:
NovaRain
2022-01-19 09:43:05 +08:00
parent 39c5ab3674
commit f77cd85f95
4 changed files with 5 additions and 5 deletions
+1
View File
@@ -454,6 +454,7 @@ typedef HRESULT (__stdcall *DInputCreateProc)(HINSTANCE a,DWORD b,IDirectInputA*
HRESULT __stdcall FakeDirectInputCreate(HINSTANCE a, DWORD b, IDirectInputA** c, IUnknown* d) {
HMODULE dinput = LoadLibraryA("dinput.dll");
if (!dinput || dinput == INVALID_HANDLE_VALUE) return -1;
DInputCreateProc proc = (DInputCreateProc)GetProcAddress(dinput, "DirectInputCreateA");
if (!proc) return -1;