steviegt6 / Stardew64Installer

A handy piece of software that converts a Linux installation of SDV into a working 64bit Windows installation.
MIT License
15 stars 2 forks source link

Fix pointer overflow in keyboard init #5

Closed Pathoschild closed 3 years ago

Pathoschild commented 3 years ago

KeyboardInput casts addresses to int when initializing, which causes an arithmetic overflow if they're outside the 32-bit range. This commit replaces SetWindowLong (which is 32-bit only) with SetWindowLongPtr to avoid that.