Fix FirewallAPI error

This commit is contained in:
nastys
2020-02-08 17:12:44 +01:00
parent 8504b2017b
commit 800b5e9845
6 changed files with 52 additions and 6 deletions
+14
View File
@@ -506,6 +506,18 @@ struct dnsapi_dll
}
} dnsapi;
struct dinput8_dll
{
HMODULE dll;
FARPROC DirectInput8Create;
void LoadOriginalLibrary(HMODULE module)
{
dll = module;
shared.LoadOriginalLibrary(dll);
DirectInput8Create = GetProcAddress(dll, "DirectInput8Create");
}
} dinput8;
#pragma runtime_checks( "", off )
@@ -737,6 +749,8 @@ void _Socket_TcpListen() { dnsapi.Socket_TcpListen(); }
void _Update_ReplaceAddressRecordsW() { dnsapi.Update_ReplaceAddressRecordsW(); }
void _Util_IsIp6Running() { dnsapi.Util_IsIp6Running(); }
typedef HRESULT(*fn_DirectInput8Create)(HINSTANCE hinst, DWORD dwVersion, REFIID riidltf, LPVOID* ppvOut, LPUNKNOWN punkOuter);
void _DirectInput8Create() { (fn_DirectInput8Create)dinput8.DirectInput8Create(); }
void _DllRegisterServer() { shared.DllRegisterServer(); }
void _DllUnregisterServer() { shared.DllUnregisterServer(); }