From 653694723917d31efbefafd962b93d53b86e0a11 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Wed, 16 Feb 2005 18:21:21 +0000 Subject: [PATCH] Cast pointers to ULONG_PTR instead of ULONG. svn path=/trunk/; revision=13603 --- reactos/ntoskrnl/mm/i386/pfault.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/reactos/ntoskrnl/mm/i386/pfault.c b/reactos/ntoskrnl/mm/i386/pfault.c index fedd6fbfb9c..cdf35a63f8c 100644 --- a/reactos/ntoskrnl/mm/i386/pfault.c +++ b/reactos/ntoskrnl/mm/i386/pfault.c @@ -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); }