From 2ffaaef5e6a146a528e78e4d656ef5edbfd02e3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Mon, 21 Nov 2011 12:30:01 +0000 Subject: [PATCH] [HALx86] - Fix the fix (do not truncate ULONGLONG value) svn path=/trunk/; revision=54472 --- reactos/hal/halx86/generic/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/hal/halx86/generic/memory.c b/reactos/hal/halx86/generic/memory.c index 7e52c23fb25..1422306f936 100644 --- a/reactos/hal/halx86/generic/memory.c +++ b/reactos/hal/halx86/generic/memory.c @@ -190,7 +190,7 @@ HalpMapPhysicalMemory64(IN PHYSICAL_ADDRESS PhysicalAddress, { /* Fill out the PTE */ PointerPte = HalAddressToPte(BaseAddress); - PointerPte->PageFrameNumber = (ULONG_PTR)PhysicalAddress.QuadPart >> PAGE_SHIFT; + PointerPte->PageFrameNumber = (PFN_NUMBER)(PhysicalAddress.QuadPart >> PAGE_SHIFT); PointerPte->Valid = 1; PointerPte->Write = 1;