Windows: Correct testing of wParam when a WM_SYSCOMMAND is received

This commit is contained in:
Elias Naur 2007-03-30 19:35:37 +00:00
parent 176a617393
commit 3899e6828f
1 changed files with 1 additions and 1 deletions

View File

@ -565,7 +565,7 @@ final class WindowsDisplay implements DisplayImplementation {
close_requested = true;
return true;
case WM_SYSCOMMAND:
switch ((int)wParam) {
switch ((int)(wParam & 0xfff0)) {
case SC_KEYMENU:
case SC_MOUSEMENU:
case SC_SCREENSAVE: