Skip to content

Commit

Permalink
Silence -Wcast-function-type.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgao committed May 12, 2021
1 parent 55a5e00 commit 735cc1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dinput8/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@ FARPROC WINAPI GetDirectInput8Proc(const char* proc_name) {
return GetProcAddress(real, proc_name);
}

static HRESULT RealDirectInput8Create(HINSTANCE hinst, DWORD version, REFIID desired_interface,
void** out_interface, IUnknown* unknown) {
static HRESULT RealDirectInput8Create(HINSTANCE hinst, DWORD version, REFIID desired_interface, void** out_interface,
IUnknown* unknown) {
static auto real =
reinterpret_cast<decltype(&DirectInput8Create)>(GetDirectInput8Proc("DirectInput8Create"));
reinterpret_cast<decltype(&DirectInput8Create)>(reinterpret_cast<void*>(GetDirectInput8Proc("DirectInput8Create")));
return real(hinst, version, desired_interface, out_interface, unknown);
}

Expand Down

0 comments on commit 735cc1d

Please sign in to comment.