Skip to content

Commit 86ec4d3

Browse files
committed
Crash Fix
Loading the VCRUNTIME140 library in the game to avoid crashing.
1 parent 95beca2 commit 86ec4d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

RawInput2/main.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ void __fastcall Hooked_IN_SetSampleTime(void* thisptr, void* edx, float frametim
205205

206206
DWORD InjectionEntryPoint()
207207
{
208+
LoadLibraryA("VCRUNTIME140.dll");
209+
208210
auto inputsystem_factory = reinterpret_cast<CreateInterfaceFn>(GetProcAddress(GetModuleHandleA("inputsystem.dll"), "CreateInterface"));
209211
g_InputSystem = reinterpret_cast<IInputSystem*>(inputsystem_factory("InputSystemVersion001", nullptr));
210212
g_Input = **reinterpret_cast<CInput***>(FindPattern("client.dll", "8B 0D ? ? ? ? 8B 01 FF 60 44") + 2);

0 commit comments

Comments
 (0)