[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NTEmacs 21.2.50 crashes
From: |
Tak Ota |
Subject: |
NTEmacs 21.2.50 crashes |
Date: |
Sat, 23 Feb 2002 09:18:23 -0800 (PST) |
2002-02-22 Jason Rumney <address@hidden>
* 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- NTEmacs 21.2.50 crashes,
Tak Ota <=