]> git.eshelyaron.com Git - emacs.git/commitdiff
(w32_read_socket): Mask out lower 4 bits of wParam
authorGeoff Voelker <voelker@cs.washington.edu>
Fri, 17 May 1996 06:12:35 +0000 (06:12 +0000)
committerGeoff Voelker <voelker@cs.washington.edu>
Fri, 17 May 1996 06:12:35 +0000 (06:12 +0000)
for WM_SYSCOMMAND messages.

src/w32term.c

index 7e9c78dde336f01935ba9a67d633df639cd46986..ea539a0a1b7b90cc79a70ffbe06d50d7e2dbd11b 100644 (file)
@@ -2627,7 +2627,7 @@ w32_read_socket (sd, bufp, numchars, waitp, expected)
          
          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);