Author: jimtabor Date: Wed Sep 7 06:33:44 2016 New Revision: 72605
URL: http://svn.reactos.org/svn/reactos?rev=72605&view=rev Log: [Win32k] - Fix a crash while running modified stress test with explorer. See CORE-11913.
Modified: trunk/reactos/win32ss/user/ntuser/menu.c
Modified: trunk/reactos/win32ss/user/ntuser/menu.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/menu.c?... ============================================================================== --- trunk/reactos/win32ss/user/ntuser/menu.c [iso-8859-1] (original) +++ trunk/reactos/win32ss/user/ntuser/menu.c [iso-8859-1] Wed Sep 7 06:33:44 2016 @@ -4137,9 +4137,12 @@ if (mt.TopMenu->fFlags & MNF_POPUP) { PWND pwndTM = ValidateHwndNoErr(mt.TopMenu->hWnd); - IntNotifyWinEvent(EVENT_SYSTEM_MENUPOPUPEND, pwndTM, OBJID_CLIENT, CHILDID_SELF, 0); - - co_UserDestroyWindow(pwndTM); + if (pwndTM) + { + IntNotifyWinEvent(EVENT_SYSTEM_MENUPOPUPEND, pwndTM, OBJID_CLIENT, CHILDID_SELF, 0); + + co_UserDestroyWindow(pwndTM); + } mt.TopMenu->hWnd = NULL;
if (!(wFlags & TPM_NONOTIFY))