1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-09 15:50:21 +00:00

(w32_read_socket): Mask out lower 4 bits of wParam

for WM_SYSCOMMAND messages.
This commit is contained in:
Geoff Voelker 1996-05-17 06:12:35 +00:00
parent efa15de41d
commit ce2d626fab

View 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);