[PATCH] Call FreeLibrary() after tests
Paul Vriens
Paul.Vriens.Wine at gmail.com
Mon Dec 15 07:50:06 CST 2008
---
dlls/xinput1_3/tests/xinput.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/dlls/xinput1_3/tests/xinput.c b/dlls/xinput1_3/tests/xinput.c
index ffc0d33..1125dcc 100644
--- a/dlls/xinput1_3/tests/xinput.c
+++ b/dlls/xinput1_3/tests/xinput.c
@@ -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);
}
--
1.6.0.4
--------------030207050201070508040700--
More information about the wine-patches
mailing list