W1lliam1337 / cstrike2-hack

Rust-based internal SDK/Base for Counter-Strike 2 (CS2)
https://en1gma.tech/
MIT License
32 stars 8 forks source link

Fixed memory access issue in enum_window callback #3

Closed INKCR0W closed 2 months ago

INKCR0W commented 2 months ago

Fixed an issue where memory writes to lparam were being optimized away by the compiler. Ensured proper memory access by using std::ptr::write to prevent reordering and guarantee correct write operations.