I have the same project built at home and the __chkstk is not there, deours hook without issues. At another PC with the same compiler, it builds adding that instruction and detour fails to hook.
I assume the block is too small thanks to that call to __chkstk. I think it should be supported, but still, please let me know if this is an issue or if it's expected.
Building with VS2022 target x64, compiler options: /MD /Zi /O2 /Ob1 /DNDEBUG
Latest version as for today(Version 4.0.1).
Trying to hook to a large function, looking at the disassembly:
I have the same project built at home and the __chkstk is not there, deours hook without issues. At another PC with the same compiler, it builds adding that instruction and detour fails to hook.
I assume the block is too small thanks to that call to __chkstk. I think it should be supported, but still, please let me know if this is an issue or if it's expected.
Building with VS2022 target x64, compiler options: /MD /Zi /O2 /Ob1 /DNDEBUG
Thanks.