gentilkiwi / mimikatz

A little tool to play with Windows security
http://blog.gentilkiwi.com/mimikatz
19.3k stars 3.7k forks source link

[fix] type cast: pointer truncation, x64 build #389

Open matrix opened 2 years ago

matrix commented 2 years ago

Hi @gentilkiwi,

trying to build mimikatz (Release|x64) with Visual Studio Community 2019, I got the error you can see in the screenshot below

mimikatz_pointer_truncation_x64

I tried to solve it by changing where necessary the code.

By applying these changes I no longer get errors/warnings with both x64 and Win32. It would be necessary to understand if at runtime the result is the expected one or not.

Do you have any way to verify this for yourself? I could try it myself but I think it's better to leave this task to you :D

Let me know, thanks :)