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…
Reference in New Issue