mirror of
https://github.com/reactos/reactos.git
synced 2024-10-10 19:27:40 +00:00
Remove hack for TS messages.
svn path=/trunk/; revision=23558
This commit is contained in:
parent
8d995ea23d
commit
219faa9936
|
@ -1103,19 +1103,13 @@ CopyMsgToKernelMem(MSG *KernelModeMsg, MSG *UserModeMsg, PMSGMEMORY MsgMemoryEnt
|
||||||
/* Copy data if required */
|
/* Copy data if required */
|
||||||
if (0 != (MsgMemoryEntry->Flags & MMS_FLAG_READ))
|
if (0 != (MsgMemoryEntry->Flags & MMS_FLAG_READ))
|
||||||
{
|
{
|
||||||
|
Status = MmCopyFromCaller(KernelMem, (PVOID) UserModeMsg->lParam, Size);
|
||||||
DPRINT1("Copy message to kernel from the User! %x from %x\n", KernelMem, UserModeMsg->lParam);
|
if (! NT_SUCCESS(Status))
|
||||||
RtlCopyMemory(KernelMem, (PVOID) UserModeMsg->lParam, Size);
|
{
|
||||||
Status = STATUS_SUCCESS;
|
DPRINT1("Failed to copy message to kernel: invalid usermode buffer\n");
|
||||||
|
ExFreePool(KernelMem);
|
||||||
|
return Status;
|
||||||
// Status = MmCopyFromCaller(KernelMem, (PVOID) UserModeMsg->lParam, Size);
|
}
|
||||||
// if (! NT_SUCCESS(Status))
|
|
||||||
// {
|
|
||||||
// DPRINT1("Failed to copy message to kernel: invalid usermode buffer\n");
|
|
||||||
// ExFreePool(KernelMem);
|
|
||||||
// return Status;
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue