mirror of
https://github.com/reactos/wine.git
synced 2025-02-22 05:40:50 +00:00
xinput1_3/tests: Call FreeLibrary() after tests.
This commit is contained in:
parent
f4da3fd7ac
commit
99eaf51bb7
@ -94,15 +94,15 @@ START_TEST(xinput)
|
||||
HMODULE hXinput;
|
||||
hXinput = LoadLibraryA( "xinput1_3.dll" );
|
||||
|
||||
if (hXinput)
|
||||
if (!hXinput)
|
||||
{
|
||||
pXInputGetState = (void*)GetProcAddress(hXinput, "XInputGetState");
|
||||
pXInputGetCapabilities = (void*)GetProcAddress(hXinput, "XInputGetCapabilities");
|
||||
test_get_state();
|
||||
test_get_capabilities();
|
||||
}
|
||||
else
|
||||
{
|
||||
skip("Could not load xinput1_3.dll\n");
|
||||
win_skip("Could not load xinput1_3.dll\n");
|
||||
return;
|
||||
}
|
||||
|
||||
pXInputGetState = (void*)GetProcAddress(hXinput, "XInputGetState");
|
||||
pXInputGetCapabilities = (void*)GetProcAddress(hXinput, "XInputGetCapabilities");
|
||||
test_get_state();
|
||||
test_get_capabilities();
|
||||
FreeLibrary(hXinput);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user