mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 08:51:29 +00:00
[NTOS:Mm] Fix some 64 bit issues
This commit is contained in:
parent
69daff72d2
commit
539c316589
|
@ -598,7 +598,7 @@ MmCreatePageFileMapping(PEPROCESS Process,
|
||||||
/* And we don't support creating for other process */
|
/* And we don't support creating for other process */
|
||||||
ASSERT(Process == PsGetCurrentProcess());
|
ASSERT(Process == PsGetCurrentProcess());
|
||||||
|
|
||||||
if (SwapEntry & (1 << 31))
|
if (SwapEntry & (1 << (sizeof(SWAPENTRY) - 1)))
|
||||||
{
|
{
|
||||||
KeBugCheck(MEMORY_MANAGEMENT);
|
KeBugCheck(MEMORY_MANAGEMENT);
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,7 +152,7 @@ MmWriteToSwapPage(SWAPENTRY SwapEntry, PFN_NUMBER Page)
|
||||||
IO_STATUS_BLOCK Iosb;
|
IO_STATUS_BLOCK Iosb;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
KEVENT Event;
|
KEVENT Event;
|
||||||
UCHAR MdlBase[sizeof(MDL) + sizeof(ULONG)];
|
UCHAR MdlBase[sizeof(MDL) + sizeof(PFN_NUMBER)];
|
||||||
PMDL Mdl = (PMDL)MdlBase;
|
PMDL Mdl = (PMDL)MdlBase;
|
||||||
|
|
||||||
DPRINT("MmWriteToSwapPage\n");
|
DPRINT("MmWriteToSwapPage\n");
|
||||||
|
@ -217,7 +217,7 @@ MiReadPageFile(
|
||||||
IO_STATUS_BLOCK Iosb;
|
IO_STATUS_BLOCK Iosb;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
KEVENT Event;
|
KEVENT Event;
|
||||||
UCHAR MdlBase[sizeof(MDL) + sizeof(ULONG)];
|
UCHAR MdlBase[sizeof(MDL) + sizeof(PFN_NUMBER)];
|
||||||
PMDL Mdl = (PMDL)MdlBase;
|
PMDL Mdl = (PMDL)MdlBase;
|
||||||
PMMPAGING_FILE PagingFile;
|
PMMPAGING_FILE PagingFile;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue