Heavens-Gate-2.0 icon indicating copy to clipboard operation
Heavens-Gate-2.0 copied to clipboard

Type conversion lacked will cause crash

Open Peter-Zheng-Sp opened this issue 1 year ago • 0 comments

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));

Peter-Zheng-Sp avatar Jun 14 '23 12:06 Peter-Zheng-Sp