dinput.dll proxy with CoCreateInstance hook

This commit is contained in:
FunkyFr3sh 2021-08-02 17:27:19 +02:00
parent d31ffbade5
commit a25e4d35f8
6 changed files with 38 additions and 1 deletions

View file

@ -236,7 +236,7 @@ HRESULT WINAPI fake_DirectInputCreateEx(
if (!real_DirectInputCreateEx)
{
real_DirectInputCreateEx =
(DIRECTINPUTCREATEEXPROC)GetProcAddress(GetModuleHandle("dinput.dll"), "DirectInputCreateEx");
(DIRECTINPUTCREATEEXPROC)GetProcAddress(LoadLibraryA("system32\\dinput.dll"), "DirectInputCreateEx");
}
if (!real_DirectInputCreateEx)