mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[Win32k]
- The Reak fix to unfocused explorer minimize hang, spotted by R3dDr4g0n <[email protected]>. svn path=/trunk/; revision=51264
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user