__readcr3() returns an unsigned __int64, fix x86 MmGetPageDirectory accordingly.

svn path=/branches/ros-amd64-bringup/; revision=35644
This commit is contained in:
Timo Kreuzer
2008-08-25 21:24:18 +00:00
parent 26ac2c8ab5
commit 2cd57c75dc
+1 -1
View File
@@ -95,7 +95,7 @@ MiFlushTlb(PULONG Pt, PVOID Address)
PULONG
MmGetPageDirectory(VOID)
{
return (PULONG)__readcr3();
return (PULONG)(ULONG_PTR)__readcr3();
}
static ULONG