diff src/event-msw.c @ 388:aabb7f5b1c81 r21-2-9

Import from CVS: tag r21-2-9
author cvs
date Mon, 13 Aug 2007 11:09:42 +0200
parents bbff43aa5eb7
children 1f50e6fe4f3f
line wrap: on
line diff
--- a/src/event-msw.c	Mon Aug 13 11:08:51 2007 +0200
+++ b/src/event-msw.c	Mon Aug 13 11:09:42 2007 +0200
@@ -1672,7 +1672,14 @@
 	  int quit_ch = CONSOLE_QUIT_CHAR (XCONSOLE (mswindows_find_console (hwnd)));
 	  BYTE keymap_orig[256];
 	  POINT pnt = { LOWORD (GetMessagePos()), HIWORD (GetMessagePos()) };
-	  MSG msg = { hwnd, message, wParam, lParam, GetMessageTime(), pnt };
+	  MSG msg;
+	  
+	  msg.hwnd = hwnd;
+	  msg.message = message;
+	  msg.wParam = wParam;
+	  msg.lParam = lParam;
+	  msg.time = GetMessageTime();
+	  msg.pt = pnt;
 
 	  /* GetKeyboardState() does not work as documented on Win95. We have
 	   * to loosely track Left and Right modifiers on behalf of the OS,
@@ -2157,7 +2164,6 @@
 	case CBN_SELCHANGE:
 	  if (!NILP (mswindows_handle_gui_wm_command (frame, cid, id)))
 	    return 0;
-	default:		/* do nothing */
 	}
       /* menubars always must come last since the hashtables do not
          always exist*/