Commit e3cda2c4 authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard

xinput1_3/tests: Cope with XInputGetStateEx not being present by name.

parent 8232f371
...@@ -238,10 +238,10 @@ START_TEST(xinput) ...@@ -238,10 +238,10 @@ START_TEST(xinput)
pXInputGetDSoundAudioDeviceGuids = (void*)GetProcAddress(hXinput, "XInputGetDSoundAudioDeviceGuids"); pXInputGetDSoundAudioDeviceGuids = (void*)GetProcAddress(hXinput, "XInputGetDSoundAudioDeviceGuids");
pXInputGetBatteryInformation = (void*)GetProcAddress(hXinput, "XInputGetBatteryInformation"); pXInputGetBatteryInformation = (void*)GetProcAddress(hXinput, "XInputGetBatteryInformation");
if (pXInputGetStateEx_Ordinal) /* XInputGetStateEx may not be present by name, use ordinal in this case */
ok (pXInputGetStateEx_Ordinal == pXInputGetStateEx, "XInputGetStateEx in the wrong ordinal\n"); if (!pXInputGetStateEx)
else pXInputGetStateEx = pXInputGetStateEx_Ordinal;
ok (broken(1), "XInputGetStateEx not found in this dll version\n"); ok (pXInputGetStateEx != NULL, "XInputGetStateEx not found in this dll version\n");
test_set_state(); test_set_state();
test_get_state(); test_get_state();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment