mirror of
https://github.com/reactos/reactos.git
synced 2024-09-13 22:31:34 +00:00
88c9e7c6e8
svn path=/branches/reactos-yarotows/; revision=47117
36 lines
741 B
C
36 lines
741 B
C
#include "win32k.h"
|
|
|
|
NTSTATUS _MmCopyFromCaller( PVOID Target, PVOID Source, UINT Bytes ) {
|
|
NTSTATUS Status = STATUS_SUCCESS;
|
|
|
|
_SEH2_TRY
|
|
{
|
|
/* ProbeForRead(Source,Bytes,1); */
|
|
RtlCopyMemory(Target,Source,Bytes);
|
|
}
|
|
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
|
{
|
|
Status = _SEH2_GetExceptionCode();
|
|
}
|
|
_SEH2_END;
|
|
|
|
return Status;
|
|
}
|
|
|
|
NTSTATUS _MmCopyToCaller( PVOID Target, PVOID Source, UINT Bytes ) {
|
|
NTSTATUS Status = STATUS_SUCCESS;
|
|
|
|
_SEH2_TRY
|
|
{
|
|
/* ProbeForWrite(Target,Bytes,1); */
|
|
RtlCopyMemory(Target,Source,Bytes);
|
|
}
|
|
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
|
{
|
|
Status = _SEH2_GetExceptionCode();
|
|
}
|
|
_SEH2_END;
|
|
|
|
return Status;
|
|
}
|