Originally Posted by
king48488
It's not caused by that
I directly inject the DLL using the following code:
Code:
uintptr_t FrameScriptExecuteAddr = 0x3B1090;
static auto const luaDoString = reinterpret_cast<uintptr_t(__fastcall*)(const char*, const char*, int64_t)>((uintptr_t)GetModuleHandle(NULL) + FrameScriptExecuteAddr);
luaDoString("print(1)", "test", 0);
Not hooked to the main thread.The game can output numbers normally.
But after hooking with WndProc, execute the above code. The game crashes.
I haven't figured out the specific principle, it was just my guess before.
Do you have any suggestions to help me?