- Revert 65431, it seems to be breaking more than it fixes. Process Explorer will break again, working on a better way to fix this. See CORE-7447.

svn path=/trunk/; revision=65514
This commit is contained in:
James Tabor 2014-11-28 20:44:04 +00:00
parent d3b2696104
commit 5ec4df01ce

View file

@ -500,11 +500,6 @@ CopyMsgToUserMem(MSG *UserModeMsg, MSG *KernelModeMsg)
return Status;
}
}
if (KernelModeMsg->message == WM_COPYDATA)
{
// Only the current process or thread can free the message lParam pointer.
return STATUS_SUCCESS;
}
ExFreePool((PVOID) KernelModeMsg->lParam);
}
@ -1417,11 +1412,6 @@ co_IntSendMessageTimeoutSingle( HWND hWnd,
CLEANUP:
if (Window) UserDerefObjectCo(Window);
// Current Thread and it's a Copy Data message, then free kernel memory.
if ( !ptiSendTo && Msg == WM_COPYDATA )
{
ExFreePool((PVOID) lParam);
}
END_CLEANUP;
}