[PATCH] dinput/tests: Use GetModuleHandleA() instead of LoadLibraryA() (Coverity).
Józef Kucia
jkucia at codeweavers.com
Wed Aug 15 03:48:54 CDT 2018
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
dlls/dinput/tests/keyboard.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dinput/tests/keyboard.c b/dlls/dinput/tests/keyboard.c
index 59411cbfa577..554268099863 100644
--- a/dlls/dinput/tests/keyboard.c
+++ b/dlls/dinput/tests/keyboard.c
@@ -448,7 +448,7 @@ static void keyboard_tests(DWORD version)
START_TEST(keyboard)
{
- pDirectInputCreateA = (void *)GetProcAddress(LoadLibraryA("dinput.dll"), "DirectInputCreateA");
+ pDirectInputCreateA = (void *)GetProcAddress(GetModuleHandleA("dinput.dll"), "DirectInputCreateA");
CoInitialize(NULL);
--
2.16.4
More information about the wine-devel
mailing list