gentilkiwi / mimikatz

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

[change] Convert pointer to DWORD_PTR first to eliminate compile warning #439

Closed chunhualiu closed 8 months ago

chunhualiu commented 8 months ago

When compiling with VS2022, it will fail with: warning C4311: 'type cast': pointer truncation from 'PVOID' to 'DWORD'

To eliminate this warning, PVOID must be converted to DWORD_PTR first.