=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: dinput/tests: Use GetModuleHandleA() instead of LoadLibraryA() (Coverity).

Alexandre Julliard julliard at winehq.org
Wed Aug 15 14:39:55 CDT 2018


Module: wine
Branch: master
Commit: 4b90a46e36448dfd9655b23938896f64c31faf2b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=4b90a46e36448dfd9655b23938896f64c31faf2b

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Wed Aug 15 10:48:54 2018 +0200

dinput/tests: Use GetModuleHandleA() instead of LoadLibraryA() (Coverity).

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 59411cb..5542680 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);
 




More information about the wine-cvs mailing list