Heavens-Gate-2.0
Heavens-Gate-2.0 copied to clipboard
Type conversion lacked will cause crash
This line of code lacks type conversion, which may cause a crash.
https://github.com/dadas190/Heavens-Gate-2.0/blob/bd8a9b08384cdde229eb616789ba921ba2b271c4/HeavensGate.h#LL300C1-L300C1
I think this line of code may need to be modified like below:
Before:
X64Call(LdrLoadDll, 4, (uint64_t)0, (uint64_t)0, str, (uint64_t)(unsigned)(&kernel32));
After:
X64Call(LdrLoadDll, 4, (fc_uint64_t)0, (fc_uint64_t)0, (fc_uint64_t)(unsigned)&str[0], (fc_uint64_t)(unsigned)(&kernel32));