mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Remove hack for TS messages.
svn path=/trunk/; revision=23558
This commit is contained in:
@@ -1103,19 +1103,13 @@ CopyMsgToKernelMem(MSG *KernelModeMsg, MSG *UserModeMsg, PMSGMEMORY MsgMemoryEnt
|
||||
/* Copy data if required */
|
||||
if (0 != (MsgMemoryEntry->Flags & MMS_FLAG_READ))
|
||||
{
|
||||
|
||||
DPRINT1("Copy message to kernel from the User! %x from %x\n", KernelMem, UserModeMsg->lParam);
|
||||
RtlCopyMemory(KernelMem, (PVOID) UserModeMsg->lParam, Size);
|
||||
Status = STATUS_SUCCESS;
|
||||
|
||||
|
||||
// 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;
|
||||
// }
|
||||
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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user