Mercurial > emacs
comparison src/w32menu.c @ 51573:861a49cd70cf
(menubar_selection_callback): Don't pass uninitialized
data to kbd_buffer_store_event.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Sun, 15 Jun 2003 21:05:34 +0000 |
parents | 22a5614b558f |
children | 695cf19ef79e |
comparison
equal
deleted
inserted
replaced
51572:1ef0c7b51ff9 | 51573:861a49cd70cf |
---|---|
1 /* Menu support for GNU Emacs on the Microsoft W32 API. | 1 /* Menu support for GNU Emacs on the Microsoft W32 API. |
2 Copyright (C) 1986, 88, 93, 94, 96, 98, 1999 Free Software Foundation, Inc. | 2 Copyright (C) 1986,88,93,94,96,98,1999,2003 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of GNU Emacs. | 4 This file is part of GNU Emacs. |
5 | 5 |
6 GNU Emacs is free software; you can redistribute it and/or modify | 6 GNU Emacs is free software; you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
1033 if ((int) (EMACS_INT) client_data == i) | 1033 if ((int) (EMACS_INT) client_data == i) |
1034 { | 1034 { |
1035 int j; | 1035 int j; |
1036 struct input_event buf; | 1036 struct input_event buf; |
1037 Lisp_Object frame; | 1037 Lisp_Object frame; |
1038 EVENT_INIT (buf); | |
1038 | 1039 |
1039 XSETFRAME (frame, f); | 1040 XSETFRAME (frame, f); |
1040 buf.kind = MENU_BAR_EVENT; | 1041 buf.kind = MENU_BAR_EVENT; |
1041 buf.frame_or_window = frame; | 1042 buf.frame_or_window = frame; |
1042 buf.arg = frame; | 1043 buf.arg = frame; |