xinput1_3/tests: Call FreeLibrary() after tests.

This commit is contained in:
Paul Vriens 2008-12-15 14:50:06 +01:00 committed by Alexandre Julliard
parent f4da3fd7ac
commit 99eaf51bb7
1 changed files with 9 additions and 9 deletions

View File

@ -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);
}