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

Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Bruno Jesus 2016-09-01 16:26:12 -03:00 committed by Alexandre Julliard
parent 8232f371d8
commit e3cda2c45d
1 changed files with 4 additions and 4 deletions

View File

@ -238,10 +238,10 @@ START_TEST(xinput)
pXInputGetDSoundAudioDeviceGuids = (void*)GetProcAddress(hXinput, "XInputGetDSoundAudioDeviceGuids");
pXInputGetBatteryInformation = (void*)GetProcAddress(hXinput, "XInputGetBatteryInformation");
if (pXInputGetStateEx_Ordinal)
ok (pXInputGetStateEx_Ordinal == pXInputGetStateEx, "XInputGetStateEx in the wrong ordinal\n");
else
ok (broken(1), "XInputGetStateEx not found in this dll version\n");
/* XInputGetStateEx may not be present by name, use ordinal in this case */
if (!pXInputGetStateEx)
pXInputGetStateEx = pXInputGetStateEx_Ordinal;
ok (pXInputGetStateEx != NULL, "XInputGetStateEx not found in this dll version\n");
test_set_state();
test_get_state();