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

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Józef Kucia 2018-08-15 10:48:54 +02:00 committed by Alexandre Julliard
parent 431fca550d
commit 4b90a46e36
1 changed files with 1 additions and 1 deletions

View File

@ -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);