mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 12:45:16 +00:00
[NtUser]
- Remove over compensating code. See CORE-7447. svn path=/trunk/; revision=65432
This commit is contained in:
parent
d7df3046e0
commit
f0350171f6
|
@ -475,9 +475,6 @@ CopyMsgToUserMem(MSG *UserModeMsg, MSG *KernelModeMsg)
|
|||
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 @@ CopyMsgToUserMem(MSG *UserModeMsg, MSG *KernelModeMsg)
|
|||
|
||||
if (0 != Size)
|
||||
{
|
||||
PWND pWnd = ValidateHwndNoErr(KernelModeMsg->hwnd);
|
||||
/* Copy data if required */
|
||||
if (0 != (MsgMemoryEntry->Flags & MMS_FLAG_WRITE))
|
||||
{
|
||||
|
@ -504,10 +500,9 @@ CopyMsgToUserMem(MSG *UserModeMsg, MSG *KernelModeMsg)
|
|||
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;
|
||||
}
|
||||
ExFreePool((PVOID) KernelModeMsg->lParam);
|
||||
|
|
Loading…
Reference in a new issue