PATCH: crash on wm close
Marcus Meissner
marcus at jet.franken.de
Sat Feb 3 13:00:06 CST 2001
Hi,
Changelog:
Don't crash on close from windowmanager [x]
Index: menu.c
===================================================================
RCS file: /home/wine/wine/controls/menu.c,v
retrieving revision 1.103
diff -u -r1.103 menu.c
--- menu.c 2001/01/25 22:22:21 1.103
+++ menu.c 2001/02/03 18:59:28
@@ -2766,6 +2766,8 @@
while (!fEndMenu)
{
menu = MENU_GetMenu( mt.hCurrentMenu );
+ if (!menu) /* sometimes happens if I do a window manager close */
+ break;
msg.hwnd = (wFlags & TPM_ENTERIDLEEX && menu->wFlags & MF_POPUP) ? menu->hWnd : 0;
/* we have to keep the message in the queue until it's
More information about the wine-patches
mailing list