[PATCH] dinput/tests: Use GetModuleHandleA() instead of LoadLibraryA() (Coverity).
15 Aug
2018
15 Aug
'18
8:48 a.m.
Signed-off-by: Józef Kucia <jkucia(a)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
2680
Age (days ago)
2680
Last active (days ago)
0 comments
1 participants
participants (1)
-
Józef Kucia