odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
6.13k stars 551 forks source link

[sys/windows]: Fix the type declaration for MODULEENTRY32W #3857

Closed flysand7 closed 4 days ago

flysand7 commented 4 days ago

The field modBaseAddr was incorrectly declared as BYTE when it should be ^BYTE, resulting in the size of the structure being 8 bytes less (padding included), when compared to declaration in the headers.