commit | 4a69939aa814d0f4b8568c42a512e4764e66ee6d | [log] [tgz] |
---|---|---|
author | Marcus Meissner <marcus@jet.franken.de> | Tue Feb 13 01:49:06 2001 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Tue Feb 13 01:49:06 2001 +0000 |
tree | 677372eb0c30f01223c877cd74f34ca2233bee03 | |
parent | 5bcef61fba12002a1cd5e759bbfea3b5976a4f86 [diff] [blame] |
Don't crash on close from window manager.
diff --git a/controls/menu.c b/controls/menu.c index 7026954..0b89690 100644 --- a/controls/menu.c +++ b/controls/menu.c
@@ -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