Author: jimtabor Date: Sat Aug 12 19:55:03 2006 New Revision: 23558
URL: http://svn.reactos.org/svn/reactos?rev=23558&view=rev Log: Remove hack for TS messages.
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/message.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/message.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/message.c (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/message.c Sat Aug 12 19:55:03 2006 @@ -1103,19 +1103,13 @@ /* 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 {