# HG changeset patch # User Geoff Voelker # Date 832313555 0 # Node ID 56c035c3687539e8324ad58e65f8c48a90af3269 # Parent 9304a470dd2d0c47895d80dcea3abd8fb48858cc (w32_read_socket): Mask out lower 4 bits of wParam for WM_SYSCOMMAND messages. diff -r 9304a470dd2d -r 56c035c36875 src/w32term.c --- a/src/w32term.c Wed May 15 21:56:33 1996 +0000 +++ b/src/w32term.c Fri May 17 06:12:35 1996 +0000 @@ -2627,7 +2627,7 @@ break; case WM_SYSCOMMAND: - switch (msg.msg.wParam) + switch (msg.msg.wParam & 0xfff0) /* Lower 4 bits used by Windows. */ { case SC_CLOSE: f = x_window_to_frame (dpyinfo, msg.msg.hwnd);