GNU bug report logs - #6414
f->output_data.w32->menubar_widget uninitialized?

Previous Next

Packages: w32, emacs;

Reported by: Lennart Borgman <lennart.borgman <at> gmail.com>

Date: Sun, 13 Jun 2010 18:03:01 UTC

Severity: normal

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: 6414 <at> debbugs.gnu.org
Subject: bug#6414: f->output_data.w32->menubar_widget uninitialized?
Date: Sun, 13 Jun 2010 20:01:37 +0200
I noticed some system call errors in free_frame_menu_bar so I tried to
nail it down:

void
free_frame_menubar (f)
     FRAME_PTR f;
{
  BLOCK_INPUT;

  {
    HMENU old = GetMenu (FRAME_W32_WINDOW (f));
    DebPrint (("free_frame_menubar.GetMenu.old=%d, f=%d, menubar_widget=%d",
               old, (FRAME_W32_WINDOW (f)),
f->output_data.w32->menubar_widget ));
    if (old)
      {
        if (!SetMenu (FRAME_W32_WINDOW (f), NULL))
          W32ASSERT (0, "free_frame_menubar.SetMenu");
        f->output_data.w32->menubar_widget = NULL;
        if (!DestroyMenu (old))
          W32ASSERT (0, "free_frame_menubar.DestroyMenu");
      }
  }

  UNBLOCK_INPUT;
}

This gave me the output below which seems to indicate that
menubar_widget is uninitialized:

  warning: free_frame_menubar.GetMenu.old=0, f=3146106, menubar_widget=329385

Where should it be initialized?




This bug report was last modified 13 years and 250 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.