mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Cast pointers to ULONG_PTR instead of ULONG.
svn path=/trunk/; revision=13603
This commit is contained in:
parent
bc6becf4da
commit
6536947239
1 changed files with 7 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id:$
|
||||
/* $Id$
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -75,18 +75,18 @@ NTSTATUS MmPageFault(ULONG Cs,
|
|||
KeLowerIrql(oldIrql);
|
||||
}
|
||||
if (!NT_SUCCESS(Status) && (Mode == KernelMode) &&
|
||||
((*Eip) >= (ULONG)MmSafeCopyFromUserUnsafeStart) &&
|
||||
((*Eip) <= (ULONG)MmSafeCopyFromUserRestart))
|
||||
((*Eip) >= (ULONG_PTR)MmSafeCopyFromUserUnsafeStart) &&
|
||||
((*Eip) <= (ULONG_PTR)MmSafeCopyFromUserRestart))
|
||||
{
|
||||
(*Eip) = (ULONG)MmSafeCopyFromUserRestart;
|
||||
(*Eip) = (ULONG_PTR)MmSafeCopyFromUserRestart;
|
||||
(*Eax) = STATUS_ACCESS_VIOLATION;
|
||||
return(STATUS_SUCCESS);
|
||||
}
|
||||
if (!NT_SUCCESS(Status) && (Mode == KernelMode) &&
|
||||
((*Eip) >= (ULONG)MmSafeCopyToUserUnsafeStart) &&
|
||||
((*Eip) <= (ULONG)MmSafeCopyToUserRestart))
|
||||
((*Eip) >= (ULONG_PTR)MmSafeCopyToUserUnsafeStart) &&
|
||||
((*Eip) <= (ULONG_PTR)MmSafeCopyToUserRestart))
|
||||
{
|
||||
(*Eip) = (ULONG)MmSafeCopyToUserRestart;
|
||||
(*Eip) = (ULONG_PTR)MmSafeCopyToUserRestart;
|
||||
(*Eax) = STATUS_ACCESS_VIOLATION;
|
||||
return(STATUS_SUCCESS);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue