Author: jimtabor
Date: Wed Nov 19 06:05:39 2014
New Revision: 65432
URL:
http://svn.reactos.org/svn/reactos?rev=65432&view=rev
Log:
[NtUser]
- Remove over compensating code. See CORE-7447.
Modified:
trunk/reactos/win32ss/user/ntuser/message.c
Modified: trunk/reactos/win32ss/user/ntuser/message.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/messag…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/message.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/message.c [iso-8859-1] Wed Nov 19 06:05:39 2014
@@ -475,9 +475,6 @@
NTSTATUS Status;
PMSGMEMORY MsgMemoryEntry;
UINT Size;
- PTHREADINFO pti;
-
- pti = PsGetCurrentThreadWin32Thread();
/* See if this message type is present in the table */
MsgMemoryEntry = FindMsgMemory(UserModeMsg->message);
@@ -492,7 +489,6 @@
if (0 != Size)
{
- PWND pWnd = ValidateHwndNoErr(KernelModeMsg->hwnd);
/* Copy data if required */
if (0 != (MsgMemoryEntry->Flags & MMS_FLAG_WRITE))
{
@@ -504,11 +500,10 @@
return Status;
}
}
- if (pWnd && KernelModeMsg->message == WM_COPYDATA)
+ if (KernelModeMsg->message == WM_COPYDATA)
{
// Only the current process or thread can free the message lParam pointer.
- if (pWnd->head.pti->MessageQueue != pti->MessageQueue)
- return STATUS_SUCCESS;
+ return STATUS_SUCCESS;
}
ExFreePool((PVOID) KernelModeMsg->lParam);
}