Commit ce2d626f authored by Geoff Voelker's avatar Geoff Voelker
Browse files

(w32_read_socket): Mask out lower 4 bits of wParam

for WM_SYSCOMMAND messages.
parent efa15de4
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment