Author: tfaber
Date: Sat Aug 26 07:31:38 2017
New Revision: 75672
URL:
http://svn.reactos.org/svn/reactos?rev=75672&view=rev
Log:
[WIN32K:NTUSER]
- Remove unnecessary thread reference in IsThreadSuspended.
Modified:
trunk/reactos/win32ss/user/ntuser/msgqueue.c
Modified: trunk/reactos/win32ss/user/ntuser/msgqueue.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/msgque…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/msgqueue.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/msgqueue.c [iso-8859-1] Sat Aug 26 07:31:38 2017
@@ -2216,9 +2216,7 @@
if (pti->pEThread)
{
BOOL Ret = TRUE;
- ObReferenceObject(pti->pEThread);
if (!(pti->pEThread->Tcb.SuspendCount) &&
!PsGetThreadFreezeCount(pti->pEThread)) Ret = FALSE;
- ObDereferenceObject(pti->pEThread);
return Ret;
}
return FALSE;
@@ -2347,7 +2345,7 @@
{
CurrentSentMessage->flags |= SMF_RECEIVERFREE;
}
-
+
if (!(CurrentSentMessage->flags & SMF_RECEIVERFREE))
{
@@ -2385,7 +2383,7 @@
/* cleanup posted messages */
while (!IsListEmpty(&MessageQueue->HardwareMessagesListHead))
{
- CurrentEntry = MessageQueue->HardwareMessagesListHead.Flink;
+ CurrentEntry = MessageQueue->HardwareMessagesListHead.Flink;
CurrentMessage = CONTAINING_RECORD(CurrentEntry, USER_MESSAGE, ListEntry);
ERR("MQ Cleanup Post Messages %p\n",CurrentMessage);
MsqDestroyMessage(CurrentMessage);