From f43d2fe8ca8b3fa41d57a3021acffaa46574cc42 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Wed, 6 Apr 2011 01:31:50 +0000 Subject: [PATCH] [Win32k] - Fix to unfocused explorer minimize hang, spotted by R3dDr4g0n . svn path=/trunk/; revision=51263 --- reactos/subsystems/win32/win32k/ntuser/window.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reactos/subsystems/win32/win32k/ntuser/window.c b/reactos/subsystems/win32/win32k/ntuser/window.c index a64f48d5ba9..379edcd99f3 100644 --- a/reactos/subsystems/win32/win32k/ntuser/window.c +++ b/reactos/subsystems/win32/win32k/ntuser/window.c @@ -1529,10 +1529,14 @@ static void IntSendParentNotify( PWND pWindow, UINT msg ) { if (pWindow->spwndParent && pWindow->spwndParent != UserGetDesktopWindow()) { + USER_REFERENCE_ENTRY Ref; + UserRefObjectCo(pWindow->spwndParent, &Ref); // Fix explorer minimize hang. + // Should be co_IntSendMessage please retest, Ref to Chg, revision 51254... co_IntSendMessageNoWait( pWindow->spwndParent->head.h, WM_PARENTNOTIFY, MAKEWPARAM( msg, pWindow->IDMenu), (LPARAM)pWindow->head.h ); + UserDerefObjectCo(pWindow->spwndParent); } } }