Merge pull request #10993 from schellingb/invalid_dinput_calls

Fix invalid calls to dinput_handle_message when input driver is not set to dinput
This commit is contained in:
Autechre 2020-07-09 15:42:55 +02:00 committed by GitHub
commit 0de7ac247a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1092,6 +1092,7 @@ LRESULT CALLBACK WndProcWGL(HWND hwnd, UINT message,
taskbar_is_created = true;
#endif
#ifdef HAVE_DINPUT
if (input_get_ptr() == &input_dinput)
{
void* input_data = input_get_data();
if (input_data && dinput_handle_message(input_data,
@ -1155,6 +1156,7 @@ LRESULT CALLBACK WndProcGDI(HWND hwnd, UINT message,
taskbar_is_created = true;
#endif
#ifdef HAVE_DINPUT
if (input_get_ptr() == &input_dinput)
{
void* input_data = input_get_data();
if (input_data && dinput_handle_message(input_data,