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;
|
HMODULE hXinput;
|
||||||
hXinput = LoadLibraryA( "xinput1_3.dll" );
|
hXinput = LoadLibraryA( "xinput1_3.dll" );
|
||||||
|
|
||||||
if (hXinput)
|
if (!hXinput)
|
||||||
{
|
{
|
||||||
|
win_skip("Could not load xinput1_3.dll\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
pXInputGetState = (void*)GetProcAddress(hXinput, "XInputGetState");
|
pXInputGetState = (void*)GetProcAddress(hXinput, "XInputGetState");
|
||||||
pXInputGetCapabilities = (void*)GetProcAddress(hXinput, "XInputGetCapabilities");
|
pXInputGetCapabilities = (void*)GetProcAddress(hXinput, "XInputGetCapabilities");
|
||||||
test_get_state();
|
test_get_state();
|
||||||
test_get_capabilities();
|
test_get_capabilities();
|
||||||
}
|
FreeLibrary(hXinput);
|
||||||
else
|
|
||||||
{
|
|
||||||
skip("Could not load xinput1_3.dll\n");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue