mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:56:00 +00:00
[Win32k]
- Fix a crash while running modified stress test with explorer. See CORE-11913. svn path=/trunk/; revision=72605
This commit is contained in:
parent
183626a804
commit
dc4261f3eb
1 changed files with 5 additions and 2 deletions
|
@ -4137,9 +4137,12 @@ static INT FASTCALL MENU_TrackMenu(PMENU pmenu, UINT wFlags, INT x, INT y,
|
||||||
if (mt.TopMenu->fFlags & MNF_POPUP)
|
if (mt.TopMenu->fFlags & MNF_POPUP)
|
||||||
{
|
{
|
||||||
PWND pwndTM = ValidateHwndNoErr(mt.TopMenu->hWnd);
|
PWND pwndTM = ValidateHwndNoErr(mt.TopMenu->hWnd);
|
||||||
|
if (pwndTM)
|
||||||
|
{
|
||||||
IntNotifyWinEvent(EVENT_SYSTEM_MENUPOPUPEND, pwndTM, OBJID_CLIENT, CHILDID_SELF, 0);
|
IntNotifyWinEvent(EVENT_SYSTEM_MENUPOPUPEND, pwndTM, OBJID_CLIENT, CHILDID_SELF, 0);
|
||||||
|
|
||||||
co_UserDestroyWindow(pwndTM);
|
co_UserDestroyWindow(pwndTM);
|
||||||
|
}
|
||||||
mt.TopMenu->hWnd = NULL;
|
mt.TopMenu->hWnd = NULL;
|
||||||
|
|
||||||
if (!(wFlags & TPM_NONOTIFY))
|
if (!(wFlags & TPM_NONOTIFY))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue