- Fix a crash while running modified stress test with explorer. See CORE-11913.

svn path=/trunk/; revision=72605
This commit is contained in:
James Tabor 2016-09-07 06:33:44 +00:00
parent 183626a804
commit dc4261f3eb

View file

@ -4137,9 +4137,12 @@ static INT FASTCALL MENU_TrackMenu(PMENU pmenu, UINT wFlags, INT x, INT y,
if (mt.TopMenu->fFlags & MNF_POPUP)
{
PWND pwndTM = ValidateHwndNoErr(mt.TopMenu->hWnd);
IntNotifyWinEvent(EVENT_SYSTEM_MENUPOPUPEND, pwndTM, OBJID_CLIENT, CHILDID_SELF, 0);
if (pwndTM)
{
IntNotifyWinEvent(EVENT_SYSTEM_MENUPOPUPEND, pwndTM, OBJID_CLIENT, CHILDID_SELF, 0);
co_UserDestroyWindow(pwndTM);
co_UserDestroyWindow(pwndTM);
}
mt.TopMenu->hWnd = NULL;
if (!(wFlags & TPM_NONOTIFY))