Commit 99eaf51b authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

xinput1_3/tests: Call FreeLibrary() after tests.

parent f4da3fd7
...@@ -94,15 +94,15 @@ START_TEST(xinput) ...@@ -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");
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment