- The Reak fix to unfocused explorer minimize hang, spotted by R3dDr4g0n <[email protected]>.

svn path=/trunk/; revision=51264
This commit is contained in:
James Tabor
2011-04-06 12:23:54 +00:00
parent f43d2fe8ca
commit 374e21b4e0
2 changed files with 7 additions and 21 deletions
@@ -1353,28 +1353,14 @@ NTSTATUS FASTCALL
co_MsqWaitForNewMessages(PUSER_MESSAGE_QUEUE MessageQueue, PWND WndFilter,
UINT MsgFilterMin, UINT MsgFilterMax)
{
PTHREADINFO pti;
NTSTATUS ret = STATUS_SUCCESS;
pti = MessageQueue->Thread->Tcb.Win32Thread;
while ( co_MsqDispatchOneSentMessage(MessageQueue) );
if (pti->pcti->fsWakeBits & pti->pcti->fsChangeBits )
{
return ret;
}
pti->pClientInfo->cSpins = 0;
IdlePing();
NTSTATUS ret;
UserLeaveCo();
ret = KeWaitForSingleObject(MessageQueue->NewMessages,
Executive,
UserMode,
FALSE,
NULL);
ret = KeWaitForSingleObject( MessageQueue->NewMessages,
UserRequest,
UserMode,
FALSE,
NULL );
UserEnterCo();
IdlePong();
return ret;
}
@@ -1530,7 +1530,7 @@ 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.
UserRefObjectCo(pWindow->spwndParent, &Ref);
// Should be co_IntSendMessage please retest, Ref to Chg, revision 51254...
co_IntSendMessageNoWait( pWindow->spwndParent->head.h,
WM_PARENTNOTIFY,