Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errenous masking of windows message flags #65

Open
expikr opened this issue Oct 27, 2023 · 0 comments
Open

errenous masking of windows message flags #65

expikr opened this issue Oct 27, 2023 · 0 comments

Comments

@expikr
Copy link

expikr commented Oct 27, 2023

if ((msg.message & 0xFF) == 0x012) { // WM_QUIT

This doesn't seem right, it will treat any message whose last byte matches 0x12 as quit, e.g. WM_HOTKEY, WM_EXITMENULOOP, WM_SYSCOMMAND, and those in the WM_USER + x ranges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant