all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* NTEmacs 21.2.50 crashes
@ 2002-02-23 17:18 Tak Ota
  0 siblings, 0 replies; only message in thread
From: Tak Ota @ 2002-02-23 17:18 UTC (permalink / raw)


2002-02-22  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
	(menu_free_timer): New variable.
	(MENU_FREE_ID, MENU_FREE_DELAY): New constants.
	(w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
	<WM_EXITMENULOOP>: Delay before freeing menu.  Do nothing if a
	menu command is in progress.
	<WM_COMMAND>: Set the menu_command_in_progress flag.  Kill
	any menu_free_timer that is running.

In the function w32_wnd_proc, WM_TIMER case seems to be missing an
initialization of f.  It crashes by referring to uninitialized f.

*** w32fns.c.orig	Fri Feb 22 21:22:59 2002
--- w32fns.c	Sat Feb 23 09:11:30 2002
***************
*** 4779,4785 ****
  	{
  	  KillTimer (hwnd, menu_free_timer);
  	  menu_free_timer = 0;
! 	  if (!f->output_data.w32->menu_command_in_progress)
  	    {
  	      /* Free memory used by owner-drawn and help-echo strings.  */
  	      w32_free_menu_strings (hwnd);
--- 4779,4786 ----
  	{
  	  KillTimer (hwnd, menu_free_timer);
  	  menu_free_timer = 0;
! 	  f = x_window_to_frame (dpyinfo, hwnd);
! 	  if (f && !f->output_data.w32->menu_command_in_progress)
  	    {
  	      /* Free memory used by owner-drawn and help-echo strings.  */
  	      w32_free_menu_strings (hwnd);

-Tak

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-02-23 17:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-23 17:18 NTEmacs 21.2.50 crashes Tak Ota

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.