gentilkiwi / mimikatz

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

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

Closed chunhualiu closed 10 months ago

chunhualiu commented 10 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.