reactos/ntoskrnl/mm
diff -u -r1.65 -r1.66
--- marea.c 15 Aug 2004 16:39:07 -0000 1.65
+++ marea.c 21 Aug 2004 19:03:04 -0000 1.66
@@ -370,7 +370,7 @@
while (current_entry != ListHead)
{
current = CONTAINING_RECORD(current_entry,MEMORY_AREA,Entry);
- if (current->BaseAddress <= Address && Address < current->BaseAddress + current->Length)
+ if (current->BaseAddress <= Address && (char*)Address < (char*)current->BaseAddress + current->Length)
{
return 0;
}
@@ -410,7 +410,8 @@
PVOID FreePageContext)
{
MEMORY_AREA* MemoryArea;
- PVOID Address, EndAddress;
+ char* Address;
+ char* EndAddress;
PEPROCESS CurrentProcess = PsGetCurrentProcess();
DPRINT("MmFreeMemoryArea(AddressSpace %x, BaseAddress %x, Length %x,"
@@ -429,7 +430,7 @@
{
KeAttachProcess(AddressSpace->Process);
}
- EndAddress = MemoryArea->BaseAddress + PAGE_ROUND_UP(MemoryArea->Length);
+ EndAddress = (char*)MemoryArea->BaseAddress + PAGE_ROUND_UP(MemoryArea->Length);
for (Address = MemoryArea->BaseAddress; Address < EndAddress; Address += PAGE_SIZE)
{