mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-04 01:23:21 +00:00
Updated LoadLibrary() to specify system32 path only
This commit is contained in:
@@ -480,7 +480,7 @@ int TouchInit()
|
||||
{
|
||||
_InitializeTouchInjection init = NULL;
|
||||
if (g_TouchLoadLibraryState > 0) return g_TouchLoadLibraryState;
|
||||
g_TouchLoadLibrary = LoadLibrary(TEXT("User32.dll"));
|
||||
g_TouchLoadLibrary = LoadLibraryExA((LPCSTR)"User32.dll", NULL, LOAD_LIBRARY_SEARCH_SYSTEM32);
|
||||
if (g_TouchLoadLibrary == NULL) { g_TouchLoadLibraryState = 2; return 2; }
|
||||
init = (_InitializeTouchInjection)GetProcAddress(g_TouchLoadLibrary, "InitializeTouchInjection");
|
||||
g_TouchInjectionCall = (_InjectTouchInput)GetProcAddress(g_TouchLoadLibrary, "InjectTouchInput");
|
||||
|
||||
Reference in New Issue
Block a user