Remove hack for TS messages.

svn path=/trunk/; revision=23558
This commit is contained in:
James Tabor 2006-08-12 15:55:03 +00:00
parent 8d995ea23d
commit 219faa9936

View file

@ -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
{ {